HMAC

HMAC 生成器

在线生成 HMAC-SHA1 / SHA256 / SHA512

🔒 100% client-side — your data never leaves this page
输入
🔒 100% client-side · Web Crypto API
输出
Enter a message and secret key to generate HMAC

About this tool

在线生成 HMAC(基于哈希的消息认证码)。支持 HMAC-SHA1、HMAC-SHA256 和 HMAC-SHA512 算法。输入消息与密钥即可即时生成签名结果。基于浏览器 Web Crypto API 实现,所有计算均在本地完成,不会上传任何数据。

Frequently Asked Questions

What is HMAC?

HMAC (Hash-based Message Authentication Code) is a mechanism for verifying both data integrity and authenticity using a secret key combined with a cryptographic hash function.

What is the difference between SHA-1, SHA-256, and SHA-512?

They differ in hash length and security strength. SHA-256 and SHA-512 are more secure and recommended for modern applications, while SHA-1 is considered deprecated for high-security use cases.

Is my secret key safe?

Yes. All HMAC calculations are performed locally in your browser using the Web Crypto API. Your message and secret key are never transmitted to any server.