Free2Box
Generador HMACTI y DesarrolloInstant browser workflowFocused single-task utilityNo setup required

Generador HMAC

Generar firmas HMAC usando SHA-256, SHA-384 o SHA-512

HMAC-SHA-256Waiting for input0 message charsSecret0Output0
Mensaje
Choose an algorithm, enter a secret key, and sign any message payload directly in the browser.
Salida HMAC
La firma HMAC aparecerá aquí

Continuar con

Mant?n el flujo de trabajo en movimiento con la siguiente acci?n relacionada.

AlgoritmoHMAC-SHA-256Message length0Secret length0ResultadoA?n no hay resultado
Privacy & Trust

Browser-side signing

The message and secret stay in the browser while the HMAC is computed with the Web Crypto API.

Integrity, not encryption

HMAC proves authenticity and tamper resistance when both sides share the same secret. It does not hide the original message.

Secret reuse matters

Protect the signing key carefully and avoid sharing it between unrelated environments or products.

Export signature

Generate a signature to enable export.

Generador HMAC Algoritmo: SHA-256 Message length: 0 Secret length: 0 Output length: 0 No signature generated yet.

Cómo Usar

1

Ingresa Tus Valores

Completa los campos de entrada con tus números o parámetros.

2

Obtén Resultados Instantáneos

Los resultados se actualizan automáticamente mientras escribes — sin necesidad de botón de envío.

3

Copia o Guarda

Copia los resultados al portapapeles o úsalos en tu flujo de trabajo.

Por Qué Usar Esta Herramienta

100% Gratis

Sin costos ocultos, sin niveles premium — todas las funciones son gratuitas.

Sin Instalación

Se ejecuta completamente en tu navegador. No necesitas descargar ni instalar nada.

Privado y Seguro

Tus datos nunca salen de tu dispositivo. Nada se sube a ningún servidor.

Funciona en Móvil

Totalmente responsivo — úsalo en tu teléfono, tableta o escritorio.

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

1

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.

2

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.

3

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.

4

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.

Preguntas Frecuentes