Skip to main content Skip to docs navigation

Hash-based message authentication code (HMAC ) is a protocol used for cryptographically authenticating messages.

On this page

It can use any kind of cryptographic functions , and its strength depends on the underlying function (SHA1 or MD5 for instance), and the chosen secret key. With such a combination, the HMAC verification algorithm is then known with a compound name such as HMAC-SHA1.

HMAC is used to ensure both integrity and authentication.

See also

Updated on April 20, 2024 by Datarist.