Input
Enter the message and the secret key. The 128-bit tag is deterministic for each pair.
The authentication tag appears below in hexadecimal.
Compute HMAC-MD5 for a message and secret key in your browser. HMAC adds a key to hashing, producing a message authentication code.
Enter the message and the secret key. The 128-bit tag is deterministic for each pair.
The authentication tag appears below in hexadecimal.
HMAC (RFC 2104) turns any hash function into a message authentication code: it hashes the key padded with an inner pad, then hashes the result with the key padded with an outer pad. Only someone holding the secret key can produce or verify the tag, which proves both integrity and authenticity of the message.
HMAC-MD5's security does not collapse the way raw MD5 collisions do, and no practical HMAC-MD5 forgery is known, but the 128-bit tag is below modern strength recommendations and MD5's reputation is poor. Prefer HMAC-SHA256 for anything new; keep HMAC-MD5 for legacy compatibility.