HMAC & Webhook Verifier

// HMAC-SHA256 · SHA-384 · SHA-512 · GitHub, Stripe & Slack webhooks

Algorithm

0 bytes

HMAC-SHA256 signature

Enter a secret and a message to see the signature.

Reference

AlgorithmOutputHex charsRecommended keyCommon use
HMAC-SHA25632 bytes6432+ random bytesJWT HS256, GitHub, Stripe and Slack webhooks, API signing
HMAC-SHA38448 bytes9648+ random bytesJWT HS384
HMAC-SHA51264 bytes12864+ random bytesJWT HS512
HMAC-SHA120 bytes4020+ random bytesLegacy only (GitHub X-Hub-Signature, old APIs)
  • NOTE
    HMAC is symmetricThe same secret signs and verifies, so anyone who can verify can also forge. Keep the secret server-side only.
  • INFO
    Use a random keyUse at least as many random bytes as the hash output, not a human password.
  • TIP
    Compare in constant time on your serverUse your language's timing-safe comparison (hmac.compare_digest, crypto.timingSafeEqual, hash_equals) rather than ==.