{ } 2DevKit
Tools / Security

HMAC Generator

Generate keyed HMAC-SHA-256 or HMAC-SHA-512 signatures locally using Web Crypto, UTF-8 or HEX keys, and HEX/Base64 output.

HMAC authenticates a message using a secret key. Keep keys private. This tool does not store, send or reveal keys in output.

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

  1. Enter the message and choose HMAC-SHA-256 or HMAC-SHA-512.
  2. Enter your secret key as UTF-8 text or an even-length hexadecimal byte string; keep it hidden while others can view your screen.
  3. 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.

Related developer tools