HMAC Calculator (SHA-1 / SHA-256 / SHA-512)
NOVOCalculate HMAC-SHA1, HMAC-SHA256 or HMAC-SHA512 of text or hex data with a hex key, instantly in your browser, with hex and Base64 output.
Funciona 100% no seu navegador — o que você insere nunca é enviado nem armazenado nos nossos servidores.
Esta ferramenta ainda não está totalmente traduzida, por isso parte do texto continua em inglês. A ferramenta funciona da mesma forma em todos os idiomas.
Runs entirely in your browser. Use test keys only — never paste production keys into a web page.
Exemplos rápidos
Entradas típicas e os resultados que esta ferramenta gera.
Visão geral
HMAC (RFC 2104) turns a hash function into a keyed message authentication code. It signs API requests and webhooks, protects tokens, and appears in payment specifications next to the older DES-based MACs.
This HMAC calculator supports SHA-1, SHA-256 and SHA-512. Enter the key in hex and the message as UTF-8 text or as hex bytes, and get the MAC in hex and Base64. The default example is RFC 4231 test case 2, so you can confirm the output against the published value.
It is useful for developers and integrators who need to reproduce a signature by hand, for example when a webhook or payment API call is rejected, or when testing a host interface. The key must be hex with a whole number of bytes, and nothing leaves your browser, though only test keys belong here.
Por que usar esta ferramenta?
- Check webhook and API signatures by hand
- Hex keys, text or hex messages
- Matches the RFC 2202 and RFC 4231 test vectors
- Runs locally — nothing is uploaded
Recursos
Three hashes
HMAC-SHA1, HMAC-SHA256 and HMAC-SHA512.
Text or hex data
Text is encoded as UTF-8 before hashing.
Hex keys
Any key length; long keys are hashed first as RFC 2104 requires.
Hex and Base64
Copy whichever encoding your system expects.
Como usar
Pick the algorithm
Choose HMAC-SHA1, HMAC-SHA256 or HMAC-SHA512 in the Algorithm list.
Enter the key
Type it in the "Key (hex)" field, e.g. 4A656665 for the text "Jefe".
Enter the data
Set "Data format" to Text (UTF-8) or Hex, then type the message in Data.
Calculate HMAC
Press "Calculate HMAC" and copy the hex or Base64 value.