docs.rodeo

MDN Web Docs mirror

HMAC

{{GlossarySidebar}} 

Hash-based message authentication code(HMAC) is a mechanism used for {{Glossary("cryptography", "cryptographically")}}  authenticating messages.

It can use any kind of {{Glossary("Hash function", "cryptographic hash function")}} . Its strength depends on the underlying hash function and the chosen secret key. With such a combination, the HMAC verification {{Glossary("Algorithm", "algorithm")}}  is then known with a compound name such as HMAC-SHA2.

HMAC is used to ensure both integrity and authentication.

See also

In this article

View on MDN