Tool Hub

HMAC Generator

為訊息和密鑰計算 HMAC 摘要 (SHA-256/384/512) (WebCrypto)

使用瀏覽器的 WebCrypto API 為訊息和密鑰計算 HMAC 摘要。任何內容都不會離開您的瀏覽器。

HMAC (hex)

使用方法

  1. Enter the message you want to authenticate in the message field。
  2. Enter the secret key in the key field。
  3. Select the algorithm: SHA-256, SHA-384, or SHA-512。
  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。

生產環境使用前請驗證輸出。無擔保 — 參見 條款.