How to use it
- Choose the hash algorithm.
- Enter the secret key (as text or as hex bytes) and the message.
- Copy the hex or Base64 result.
How it works
HMAC (RFC 2104) mixes a secret key into a hash so the receiver can check both the integrity and the origin of a message. It is computed with the browser’s Web Crypto API, using the key’s bytes (UTF-8 for text keys). The page’s own tests reproduce published test vectors, for example key “key” and the quick-brown-fox message give f7bc83f4…3cd8 with SHA-256.
Examples
- HMAC-SHA-256 with key “key” of “The quick brown fox jumps over the lazy dog” starts f7bc83f4 30538424.
Limitations
- Do not paste real production secrets into any website you do not control. The site’s security policy blocks any network connection except back to tools.gift, and nothing is stored, but a safer habit is to test with sample keys. SHA-1 is weak for new designs.
Last verified . See our Accuracy & Editorial Policy. Found a problem? Email contact@tools.gift.