Compute the HMAC of a text or file with a secret key (SHA-1, SHA-256, SHA-384, SHA-512) and verify an expected signature, for example a webhook's. The key can be text, hexadecimal or Base64.
Your data stays on your computer. Files are processed in your browser and are never uploaded.
AlgorithmOutput format
The key is never sent or stored. An empty key is allowed (it is the same as a key of zeros).
Verify a signature
Paste the signature you expect (hex, Base64 or Base64url, a prefix such as sha256= is fine): the comparison is constant-time.
How it works
HMAC (RFC 2104) mixes the message with a secret key using a hash function: whoever does not know the key cannot produce a valid signature nor change the message unnoticed.
Where it is used
Webhook signatures (GitHub, Stripe…), authenticated APIs, signed tokens and cookies. For webhook signatures compute the HMAC over the raw body, byte for byte.
Privacy
Key and message stay in your browser and are processed with WebCrypto: they are neither sent nor stored and never end up in links.