Skip to content

编码与加密

HMAC 生成器

免费的 HMAC 生成器。使用 SHA-1, 256, 384 或 512 和任何密钥创建 HMAC 签名。支持十六进制和 Base64 输出。适用于 webhook 签名、API 认证。

Runs in your browser
Input
Output
Hex
Base64

编辑注

Understanding · A signature, with a shared secret.

本深度章节目前仅有英文版本。上方的转换工具支持您的语言;长篇说明文章尚未翻译。

常见问题

Quick answers.

What is HMAC?

Hash-based Message Authentication Code — a way to verify a message hasn't been tampered with using a shared secret. Common in webhook signing.

Is HMAC encryption?

No — HMAC is authentication. The message itself is in cleartext; HMAC just lets the receiver verify it came from someone with the same secret.

Which algorithm should I use?

HMAC-SHA256 is the modern default. HMAC-SHA1 is still common in older systems but should be avoided for new work.

Is my secret sent to a server?

No — generation runs entirely in your browser via the Web Crypto API.

Is the generator free?

Yes — fully free, no signup.

大家也在搜索

Use with

What people reach for next.

相关工具

More in this room.

查看所有 编码与加密