⚡
usefultools.dev
H

HMAC Calculator (SHA-1 / SHA-256 / SHA-512)

NOVO

Calculate 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.

SHA-256
Key Jefe · "what do ya want…"
5BDCC146…64EC3843
SHA-1
Key Jefe · "what do ya want…"
EFFCDF6A…259A7C79
SHA-512
Key Jefe · "what do ya want…"
164B7A7B…38BCE737
SHA-256
Key 6B6579 · "The quick brown…"
F7BC83F4…2D1A3CD8
📖

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

1

Pick the algorithm

Choose HMAC-SHA1, HMAC-SHA256 or HMAC-SHA512 in the Algorithm list.

2

Enter the key

Type it in the "Key (hex)" field, e.g. 4A656665 for the text "Jefe".

3

Enter the data

Set "Data format" to Text (UTF-8) or Hex, then type the message in Data.

4

Calculate HMAC

Press "Calculate HMAC" and copy the hex or Base64 value.

🤔

Perguntas frequentes