HMAC generation
Generates an HMAC message authentication code using the secret key and the specified algorithm.
- views
- —
- favorites
- —
Tool description and FAQ
Tool Guide
01Message and Key Generation HMAC
Fill in the message and non-empty key, select SHA-1, SHA-256, SHA-384 or SHA-512, and the result is calculated by the browser Web Crypto API. Both the message and key are encoded as UTF-8 text, the key is not automatically interpreted as hex or Base64.
02hex and Base64 output
The encoding options only control how the final signature bytes are displayed. hex is lowercase hexadecimal and Base64 is standard Base64. Both express the same set of authentication code bytes, and the current display format is used when copying or downloading.
03Key and message handling
Keys can be shown or hidden, but are not uploaded or automatically saved. Messages can be up to 5 MB and text files can be opened from the editing area. Automatically recalculate after modifying any parameters, and clear old results when calculation fails.
FAQ
Q1Why is it inconsistent with the server signature?
Checks whether the key is text, hex or Base64 bytes, checks for newlines, character encoding, message serialization and output format. Keys for this tool are always processed as UTF-8 text.
Q2Are empty messages and empty keys supported?
Supports empty messages. The current Web Crypto entrance requires a non-empty key. An empty key will clearly report an error and the last authentication code will not be retained.
Q3Can official data be processed with public test keys?
Test keys are used only for the verification process and should not be used as production keys. The input will not be uploaded by this tool, but the copied or downloaded results must still be kept by you.