dev utility
HMAC Generator
Compute an HMAC signature of text with a local secret key and SHA-1/2.
Create an HMAC
Compute an HMAC signature of text with a local secret key and SHA-1/2.
HMAC signature
- Input
- —
- Output
- —
How it works
Authenticate a message with a shared secret using HMAC-SHA-1, HMAC-SHA-256, HMAC-SHA-384 or HMAC-SHA-512. The message and key stay in the tab. HMAC proves possession of the key; it does not encrypt the message.
Limits
- The secret key is entered in the page and stays in this tab; do not use this for high-value production keys on a shared device.
- HMAC authenticates using a shared key; it does not encrypt the message.
- HMAC-SHA-1 is retained only for protocol compatibility; prefer SHA-256 or stronger.
Questions
Does HMAC encrypt the message?
No. HMAC authenticates a message with a shared key; the message remains readable. Use encryption when confidentiality is required.
Which algorithm should I use?
Prefer HMAC-SHA-256 or stronger. SHA-1 is retained for legacy protocol compatibility only.
Where is the secret key stored?
Only in the page memory for this tab. It is not sent to a server or saved in browser storage.
Privacy
Usage measurement is off for this tool. This page makes no analytics request. Your input is not sent to a server.