What is HMAC Generator?
HMAC is a keyed message authentication code. Unlike an ordinary hash, it incorporates a secret key so that a party knowing the key can verify message integrity and authenticity. This generator supports HMAC-SHA-256 and HMAC-SHA-512 with UTF-8 text or hexadecimal binary key bytes. Keys and messages are used only in browser memory, are never sent to a server and are not stored. Keep secret keys private and use high-entropy keys in production.
How to use this tool
- Enter the message and choose HMAC-SHA-256 or HMAC-SHA-512.
- Enter your secret key as UTF-8 text or an even-length hexadecimal byte string; keep it hidden while others can view your screen.
- Compute the MAC and copy or download the HEX, Base64 or Base64URL output.
Example
HMAC-SHA-256 for message 'The quick brown fox jumps over the lazy dog' with key 'key' begins f7bc83f430538424.