What is HMAC Generator?
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 may be used to simultaneously verify both the data integrity and the authentication of a message.
Input Formats
- Message text
- Secret key
- Algorithm selection
Output Results
- HMAC string
Key Features
Security: Verifies both integrity and authenticity
Versatile: Supports multiple hash algorithms
Privacy: 100% Client-side processing
Standard: Compliant with RFC 2104
Shareable LinksShare generated HMAC. (Limit: 1KB)
Who is this for?
API Authentication
Signing API requests to verify sender identity.
API signatureRequest signing
How to Use
1
Enter your message.
2
Enter your secret key.
3
Select the hash algorithm.
4
Copy the generated HMAC.
Examples
Input
Message: Hello, Key: SecretOutput
HMAC-SHA256: ...Common Errors
- Using weak keys
- Mismatched algorithms
Code Examples
Node.js
const crypto = require('crypto');
const hmac = crypto.createHmac('sha256', 'Secret');
hmac.update('Hello');
console.log(hmac.digest('hex'));Frequently Asked Questions
Is the key sent to the server?
No, everything is processed locally in your browser.
