HMAC Generator
Generate HMAC message authentication codes.Runs in this tab.⌘ ↵ runs it
Algorithm:
Next step
AtriumKitFrom the team behind browserutils
Turn a click-through into an interactive demo
AtriumKit records your web app once in Chrome and turns every click into a step of a demo you can embed or share. There’s a free plan.
Try AtriumKit freeAbout HMAC Generator
Free online HMAC generator. Create HMAC-SHA256, HMAC-SHA512, and other keyed-hash message authentication codes using the Web Crypto API. It runs in your browser. Nothing is sent to a server.
Questions
What is HMAC?
HMAC (Hash-based Message Authentication Code) combines a secret key with a hash function to produce a code that verifies both data integrity and authenticity.
Which algorithm should I use?
SHA-256 is the most commonly used. SHA-512 provides extra security for sensitive applications. SHA-1 is considered legacy and should be avoided for new projects.
HMAC vs plain hash: what is the difference?
A plain hash only verifies data integrity (the data was not changed). HMAC also verifies authenticity (the data came from someone who knows the secret key). Without a secret key, anyone can compute a plain hash.
Where is HMAC used in practice?
HMAC is used in API authentication (e.g., AWS Signature V4), webhook signature verification, JWT signing (HS256), and secure cookie signing.
Is my secret key safe when generating HMAC online?
Yes, the HMAC is computed entirely in your browser using the Web Crypto API. Your secret key and message data never leave your device.
How do I verify a webhook signature with HMAC?
Paste the webhook payload as the message and the signing secret provided by the service as the key. If the generated HMAC matches the signature in the webhook header, the payload is authentic.
Comments
More in Hashing & Crypto
- UUID Generator
- Hash Generator
- Password Generator
- Bcrypt Generator
- Checksum Calculator
- MD5 Hash Generator
- SHA-256 Hash Generator
- RSA Key Generator
Comments