Tool Hub

HMAC Generator

为消息和密钥计算 HMAC 摘要 (SHA-256/384/512) (WebCrypto)

使用浏览器的 WebCrypto API 为消息和密钥计算 HMAC 摘要。任何内容都不会离开您的浏览器。

HMAC (hex)

使用方法

  1. 输入
  2. 输入
  3. 选择
  4. Copy the hexadecimal HMAC digest from the output.
  5. All computation runs in your browser via the WebCrypto API — nothing is stored or sent anywhere.

示例

  • Message "GET /api/data" with key "mysecret" and SHA-256 produces a 64-character hex digest used to verify the request signature.
  • Changing a single character in the message or key produces a completely different digest, confirming tamper detection.

生产环境使用前请验证输出。无担保 — 参见 条款.