CalcChef
Search tools (e.g. 'calc', 'converter')... (Press '/' or 'Cmd+K')

HMAC Generator

Generate Hash-based Message Authentication Codes (HMAC) using secret keys. Securely sign API requests and verify data authenticity.

Loading Tool...

Applications

Crucial for securely signing API requests (e.g., AWS, Stripe) and authenticating messages between two parties who share a secret key.

The Formula

HMAC(K, m) = H((K ⊕ opad) || H((K ⊕ ipad) || m)) where K is the key and m is the message. It prevents length-extension attacks.

Fun Fact: HMAC is considered significantly more secure than simple hash-based signatures because it digests the secret key twice.

Related Tools

View all tools