Back

Cipta Code

HMAC Generator

Hash-based Message Authentication Code. Combine a cryptographic hash function with a secret cryptographic key.

Message

HMAC Output (SHA-256)

Waiting for message...

What is HMAC?

HMAC (Hash-based Message Authentication Code) is a specific type of message authentication code (MAC) involving a cryptographic hash function and a secret cryptographic key. It can be used to simultaneously verify both the data integrity and the authenticity of a message.

How it works

Any cryptographic hash function, such as SHA-256 or SHA-512, may be used in the calculation of an HMAC. The cryptographic strength of the HMAC depends upon the cryptographic strength of the underlying hash function, the size of its hash output, and the size and quality of the key.