HMAC Generator & Verifier
Compute an HMAC (hash-based message authentication code) over a message with a shared secret, entirely in your browser via the Web Crypto API. Neither the message nor the secret is ever uploaded, added to the URL, or logged.
Message
Secret key
Algorithm
Output encoding
Signature
Verify against an expected signature
Copy examples
Node.js
const crypto = require('crypto');
crypto.createHmac('sha256', secret).update(message).digest('hex');Python
import hmac, hashlib hmac.new(secret.encode(), message.encode(), hashlib.sha256).hexdigest()