Cryptography
HMAC
Also known as: Keyed-Hash MAC, RFC 2104 HMAC
Definition
A keyed Message Authentication Code construction built on top of a cryptographic hash function, defined in RFC 2104 and FIPS 198-1.
Examples
- JWT tokens with the HS256 algorithm are signed using HMAC-SHA-256.
- AWS Signature Version 4 uses HMAC-SHA-256 to sign API requests.
Related terms
Message Authentication Code (MAC)
A short symmetric-key tag that authenticates a message and detects tampering, computed and verified with the same shared secret.
Cryptographic Hash Function
A deterministic one-way function that maps arbitrary-length input to a fixed-length digest, designed to be collision-, preimage-, and second-preimage-resistant.
SHA-256
A 256-bit cryptographic hash function from the SHA-2 family, widely used for digital signatures, TLS, blockchains, and integrity verification.
PBKDF2
A password-based key derivation function defined in PKCS #5 / RFC 8018 that applies a pseudorandom function with a configurable iteration count and salt.
Digital Signature
A public-key cryptographic mechanism that proves the authenticity, integrity and non-repudiation of a message or document.
TLS (Transport Layer Security)
TLS (Transport Layer Security) — definition coming soon.