⚡
usefultools.dev
H

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

NOUVEAU

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.

Fonctionne à 100 % dans votre navigateur — vos données ne sont jamais envoyées ni stockées sur nos serveurs.

Cet outil n'est pas encore entièrement traduit : une partie du texte est encore en anglais. L'outil lui-même fonctionne de la même façon dans toutes les langues.

Runs entirely in your browser. Use test keys only — never paste production keys into a web page.

⚡

Exemples rapides

Des entrées typiques et les résultats produits par cet outil.

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
📖

Présentation

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.

Pourquoi utiliser cet outil ?

  • 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
⭐

Fonctionnalités

#️⃣

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.

🛠️

Mode d'emploi

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.

🤔

Questions fréquentes