🔐

HMAC Generator

Generate HMAC signatures using SHA-1, SHA-256, SHA-384 and SHA-512 algorithms. Runs entirely in your browser — no data sent to any server.

🔒 Security Tools Free Browser-based
Tool
Algorithm

What is HMAC?

HMAC (Hash-based Message Authentication Code) is a cryptographic technique that combines a secret key with a hash function to produce a unique signature for a message. It is widely used for API authentication, webhook verification and data integrity checks.

Algorithm Comparison

AlgorithmOutput LengthSecurity LevelCommon Use
HMAC-SHA-1160 bits / 20 bytesModerateLegacy systems
HMAC-SHA-256256 bits / 32 bytesStrongJWT, API signatures
HMAC-SHA-384384 bits / 48 bytesVery StrongHigh-security APIs
HMAC-SHA-512512 bits / 64 bytesVery StrongSensitive data signing

How It Works

HMAC combines your secret key and message through two rounds of hashing: HMAC(key, msg) = H((key ⊕ opad) ∥ H((key ⊕ ipad) ∥ msg)). Even a tiny change in the message or key produces a completely different signature — making it tamper-proof.

Frequently Asked Questions