TOOLS / HASHING & DERIVATIONHMAC
Authenticate data with a secret key.
Calculator reference
Verification evidence and limitations →
What it calculates
Computes a keyed message authentication code using a hash function.
Inputs and methods
HEX key, HEX or ASCII data; MD5, SHA-1, SHA-256, SHA-384 or SHA-512.
Worked example
HMAC-SHA-256, key HEX 0B repeated 20 times, ASCII data Hi There.
B0344C61D8DB38535CA8AFCEAF0BF12B881DC200C9833DA726E9376C2E32CFF7
Specification and limits
The output is the full HMAC. Sender and verifier must use the same key, input bytes and hash.
RFC 4231 ↗