HMAC-Generator
HMAC-Signaturen mit SHA-256, SHA-384 oder SHA-512 generieren
Was ist HMAC?
HMAC (Hash-basierter Nachrichtenauthentifizierungscode) überprüft die Datenintegrität und Authentizität mithilfe eines geheimen Schlüssels in Kombination mit einer Hash-Funktion.
Verwandte Tools
Hash-Generator
SHA-1-, SHA-256-, SHA-384-, SHA-512-Hashes generieren
Passwortgenerator
Starke, sichere Zufallspasswörter generieren
JWT-Decoder
JSON Web Tokens dekodieren und inspizieren
Token- / Geheimnis-Generator
Zufällige Token, API-Schlüssel und Geheimnisse in verschiedenen Formaten generieren
Bcrypt-Hash-Generator
Passwörter mit Bcrypt hashen und Hashes verifizieren
JSON-Formatter
JSON-Daten formatieren, komprimieren und validieren
Anleitung
Werte eingeben
Füllen Sie die Eingabefelder mit Ihren Zahlen oder Parametern aus.
Sofortige Ergebnisse erhalten
Ergebnisse aktualisieren sich automatisch während der Eingabe — kein Absenden-Button nötig.
Kopieren oder Speichern
Kopieren Sie Ergebnisse in die Zwischenablage oder verwenden Sie sie in Ihrem Arbeitsablauf.
Warum dieses Werkzeug nutzen
100 % Kostenlos
Keine versteckten Kosten, keine Premium-Stufen — jede Funktion ist kostenlos.
Keine Installation
Läuft vollständig in Ihrem Browser. Keine Software zum Herunterladen oder Installieren.
Privat & Sicher
Ihre Daten verlassen niemals Ihr Gerät. Nichts wird auf einen Server hochgeladen.
Funktioniert auf Mobilgeräten
Vollständig responsiv — nutzbar auf Smartphone, Tablet oder Desktop.
HMAC: Hash-Based Message Authentication Codes
Key Takeaways
- HMAC combines a cryptographic hash function with a secret key to provide both data integrity and authentication.
- Unlike plain hashes, HMAC proves that the message was created by someone who knows the secret key — preventing tampering and forgery.
- All HMAC generation is performed in your browser using the Web Crypto API — your keys and data remain private.
HMAC (Hash-based Message Authentication Code) is a mechanism for verifying both the integrity and authenticity of a message. It is used extensively in API authentication (AWS Signature V4), webhook verification (GitHub, Stripe), and secure communication protocols. HMAC is more secure than simple hash verification because it requires knowledge of a shared secret key.
HMAC-SHA256 is used to authenticate over 1 billion API requests per day across major cloud platforms.
Scale of Use
Key Concepts
How HMAC Works
HMAC processes the key through two rounds of hashing with different padding (ipad and opad), making it resistant to length extension attacks that affect plain hash functions.
HMAC vs. Plain Hash
A plain hash (SHA-256 of a message) can be computed by anyone. HMAC requires the secret key, so only authorized parties can generate a valid MAC. This provides authentication in addition to integrity.
Webhook Signature Verification
Services like GitHub and Stripe sign webhook payloads with HMAC-SHA256 using a shared secret. The receiver recomputes the HMAC and compares it with the signature header to verify authenticity.
Timing-Safe Comparison
When verifying HMAC signatures, always use constant-time comparison functions to prevent timing attacks that could leak information about the expected value byte by byte.
Pro Tips
Use HMAC-SHA256 as your default — it offers an excellent balance of security and performance for most applications.
Keep HMAC keys at least as long as the hash output (32 bytes for SHA-256) for maximum security.
Rotate HMAC keys periodically and support multiple active keys during transition periods.
Never log or expose HMAC keys in error messages, URLs, or client-side code.
All HMAC computation is performed entirely in your browser using the Web Crypto API. Your secret keys and message data are never transmitted to any external server.