首页
Tom Utilities

HMAC 生成器

开发者实用工具

使用 SHA-1、SHA-256、SHA-384 或 SHA-512 计算十六进制或 Base64 格式的 HMAC 签名。

使用方法

Generating an HMAC

Enter the secret key and message, then choose the hash algorithm and output encoding.

  1. Enter the key.
  2. Enter the message.
  3. Pick the algorithm and encoding.

常见问题

Is my key uploaded?

No, the signature is computed locally with the Web Crypto API.

Which encoding should I use?

Hex is common; Base64 is often used in HTTP and JWT contexts.