HMAC Generator

Generate a keyed-hash message authentication code (HMAC) using SHA-256, SHA-384, or SHA-512. Your secret key never leaves your browser.

Privacy: All processing happens in your browser via the Web Crypto API. Your secret key is never sent to our servers.

What Is HMAC?

HMAC (Hash-based Message Authentication Code) is a specific type of message authentication code involving a cryptographic hash function and a secret key. It provides both data integrity (the message hasn't changed) and authentication (the sender knows the secret key). The formula is: HMAC(K, m) = H((K' ⊕ opad) || H((K' ⊕ ipad) || m)) where K is the key, H is the hash function, and opad/ipad are fixed padding constants.

Common HMAC Use Cases

Choosing an Algorithm

Worked Example

Message: message
Key: secret
HMAC-SHA256: 8b5f48702995c1598c573db1e21866a9b825d4a794d169d7060a03605796360b

Also try our AES Encryption tool for symmetric message encryption →

Awesome findWhatIsMyIP Blog