Encryption

HMAC

English

Overview

A mechanism that uses a shared key to detect tampering with a message.

Details

Short for Hash-based Message Authentication Code. A mechanism that combines a shared key with a hash function, letting a message's integrity and authenticity be verified at the same time. A plain hash function might look like it detects tampering too, but anyone without the key can compute the same hash, so it really doesn't; folding in a shared key is what lets HMAC also authenticate the sender, which is its real value.

More Security terms