HMAC-SHA Authentication
Hash-based Message Authentication Code
HMAC-SHA1
HMAC-SHA256
HMAC-SHA384
HMAC-SHA512
HMAC-SHA3-256
HMAC-SHA3-512
HMAC-MD5
Secret Key
Message
Authentication Result (MAC)
Authentication Result (MAC)
Hex Lowercase
Hex Uppercase
Base64

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 is used to simultaneously verify both the data integrity and the authenticity of a message.

🎯

Core Value

  • Tamper-proof
  • Authentication
  • High security
  • Industry standard
📋

Supported Algorithms

  • HMAC-SHA1
  • HMAC-SHA256 (Recommended)
  • HMAC-SHA384
  • HMAC-SHA512
  • HMAC-SHA3-256
  • HMAC-SHA3-512
🚀

Scenarios

  • API interface signing
  • Authentication tokens
  • Data transmission verification
💎

Technical Features

  • Keyed-hash
  • One-way function
  • Collision resistance

🚀 Usage Guide

  • Select: Choose the hash algorithm (e.g., HMAC-SHA256) from the menu.
  • Input Key: Enter the shared secret key in the 'Secret Key' box.
  • Input Message: Enter the message you want to authenticate in the 'Message' box.
  • Get Result: The HMAC value will be calculated in real-time, supporting Hex and Base64.

💡 FAQ

What is the difference between HMAC and regular SHA?
Regular SHA only hashes the content; HMAC uses a key to ensure that only those with the key can generate the same code, providing better security.
How long should the key be?
It's recommended that the key be the same length as the hash output (e.g., 32 bytes for SHA-256), though HMAC supports keys of any length.