What is an HMAC?
A Keyed-Hash Message Authentication Code (HMAC) is a specific type of message authentication code (MAC) involving a cryptographic hash function and a secret cryptographic key. It is commonly used to sign API requests (such as AWS, Stripe, and GitHub webhooks) to ensure both data integrity and message authenticity.
What is the Cryptographic HMAC Generator?
Generate keyed-hash message authentication codes (HMAC) using SHA-256, SHA-512, and SHA-1 in your browser using the native Web Crypto API. 100% private.
What can you use it for?
Use it to prepare or inspect a keyed message digest for an API test, webhook example, or message-integrity workflow.
How does it work?
Enter the message and shared secret, then choose a hash algorithm. The page combines the key and message through HMAC and displays the result.
What problem does it solve?
An ordinary hash cannot prove that the sender knew a shared secret. HMAC adds that key to the calculation so both sides can compare a message tag.
Frequently asked questions
What does HMAC Generator do?
Generate keyed-hash message authentication codes (HMAC) using SHA-256, SHA-512, and SHA-1 in your browser using the native Web Crypto API. 100% private.
How do I use HMAC Generator?
Enter the message and secret key, select a hash algorithm, and copy the HMAC in hexadecimal or Base64 format. Keep the key private.