Diese Seite ist noch nicht auf Deutsch verfügbar, daher zeigen wir die englische Version.

HMAC Generator — SHA-256, SHA-512 & SHA-1

Compute keyed HMAC signatures for API requests and webhooks, and check whether a received signature is valid — using your browser’s Web Crypto API.

Aktualisiert am
Algorithm

🔒 Runs locally with your browser’s Web Crypto API — nothing you type is sent to a server.

Deine Daten verlassen nie deinen Computer. Die Verarbeitung erfolgt zu 100 % lokal im Browser.

So nutzt du: HMAC Generator

  1. Paste the message exactly as it is signed — the raw request body for webhooks.
  2. Enter the secret key and pick its encoding.
  3. Choose the hash algorithm; the HMAC updates instantly.
  4. Paste a received signature into Expected signature to verify it.

What is HMAC?

HMAC (Hash-based Message Authentication Code, RFC 2104) combines a secret key with a hash function to produce a signature. Anyone with the key can compute the same value; anyone without it cannot forge one. APIs use HMAC to sign requests (AWS Signature v4, many payment gateways) and webhooks use it so you can prove a callback really came from the sender.

Verifying webhooks

ServiceHeaderAlgorithm / encoding
GitHubX-Hub-Signature-256HMAC-SHA256, hex, prefixed sha256=
StripeStripe-SignatureHMAC-SHA256 hex of timestamp.body
ShopifyX-Shopify-Hmac-Sha256HMAC-SHA256, Base64
SlackX-Slack-SignatureHMAC-SHA256 hex of v0:timestamp:body

The most common reason a signature does not match is that the body was changed before signing — parsed and re-serialized JSON, different whitespace or line endings. Always sign the raw bytes you received. The verifier above accepts hex (with or without sha256=), Base64 and Base64url.

HMAC vs plain hashes

A plain SHA-256 hash proves integrity but not authenticity: anyone can recompute it after changing the message. HMAC includes the secret, so only key holders can produce a valid value. Use a key of at least as many random bytes as the hash output (32 for SHA-256). In server code, compare signatures with a constant-time function such as crypto.timingSafeEqual.

For unkeyed hashes, use the hash generator; for signed tokens, the JWT encoder.

Auch gesucht als: hmac sha256, hmac online, hmac sha256 online, webhook signature, hmac sha512, verify hmac.

Passende Tools zu: HMAC Generator

  • JWT-Decoder — Füge ein JSON-Web-Token ein, um dessen Header und Payload zu überprüfen, das Ablaufdatum zu ermitteln und die Signatur zu verifizieren.
  • Base64-Kodierung / -Dekodierung — Konvertiere Text in Base64 und zurück – mit vollständiger UTF-8-Unterstützung (Akzente, Emojis), wechsle zu URL-sicheren Base64-Werten oder zieh eine Datei per Drag & Drop hinein, um deren Base64-Zeichenkette oder Daten-URI zu erhalten.
  • AES Encrypt & Decrypt — Protect a note, secret or config value with a password using AES-256 — or decrypt text produced by openssl enc.
  • IBAN Validator — Check whether an IBAN is valid before you send money or save it: the country, the length for that country, the account format and the mod-97 checksum.

Häufige Fragen

Why does my HMAC not match the webhook signature?
Usually the message differs: the body must be the raw bytes received, not JSON that was parsed and re-stringified. Also check the algorithm, the key encoding and any prefix like sha256=.
Is HMAC-SHA1 still secure?
HMAC-SHA1 is still considered secure for authentication, unlike plain SHA-1 for signatures, but new systems should use HMAC-SHA256.
Is my secret key sent anywhere?
No. The HMAC is computed in your browser with the Web Crypto API.
What is the difference between hex and Base64 output?
They encode the same bytes differently. Hex is 64 characters for SHA-256; Base64 is 44 characters. Use whatever the receiving system expects.
Kann ich HMAC Generator als Web-App installieren und offline nutzen?
Ja. HMAC Generator ist eine installierbare Web-App (PWA) – sie wird über Ihren Browser installiert und nicht aus einem App-Store heruntergeladen. Klicken Sie oben auf dieser Seite in Chrome oder Edge (Windows, macOS, Linux, ChromeOS) auf „App installieren“ oder verwenden Sie auf Android-Geräten „Teilen“ → „Zum Startbildschirm hinzufügen“ auf dem iPhone und iPad bzw. „Datei“ → „Zum Dock hinzufügen“ in Safari 17+ auf einem Mac. Die App öffnet sich dann in einem eigenen Fenster mit einem eigenen Symbol, und da sie vollständig in Ihrem Browser ausgeführt wird, funktioniert sie auch offline. Firefox auf dem Desktop kann keine Web-Apps installieren. So funktioniert die Installation.

Ähnliche Tools