What is HMAC?
When data is transferred over an unreliable medium like the Internet, we need some way to check that the stated sender has indeed sent the message and the message is not modified after it is sent. We use the Message Authentication Code or MAC for that purpose. A MAC is a short piece of digital information that is attached to a message to ensure the data integrity and authenticity of the sent message. On successful verification of the MAC, it ensures the recipient that the stated sender has sent the message and the message is unmodified after it is sent. HMAC or Hash-based Message Authentication Code is a type of Message Authentication Code (MAC). Using HMAC one can generate a MAC of a message using a cryptographic hash function and a secret key.
How does HMAC work? In this article, we would discuss that in detail.
In this article, we would discuss:
-
What is HMAC?
-
How does HMAC work?
0 Comments