
Example: message The quick brown fox jumps over the lazy dog, key key, HMAC-SHA256 = f7bc83f430538424b13298e6aa6fb143ef4d59a14946175997479dbc2d1a3cd8.
Why doesn't my result match the server? Check that the message is byte-for-byte identical (spaces, line breaks, JSON key order) and that the key format is right: many services give a hex or Base64 secret.
Is HMAC the same as a hash? No. A hash (SHA-256) can be computed by anyone; an HMAC needs the secret key, so it proves the message came from someone who knows the key.
Is my key safe? The calculation uses the browser's Web Crypto API and nothing is sent to a server. The key is only remembered if you tick the option at the top.