Skip to content
/
Suscribirse Subscribe

Detrás del telón hay sistemas, no magia. Arquitectura de software, IA y computación de bajo nivel para las trincheras de producción.

Behind the curtain there are systems, not magic. Software architecture, AI, and systems engineering from the production trenches.

(🇪🇸 Cambiar al Decodificador JWT y Verificador WebCrypto en español aquí)

100% Client-Side · WebCrypto SubtleCrypto · Zero Network Uploads

Pasting live production JWTs, session cookies, or HMAC signing secrets into third-party debuggers loaded with analytics scripts is a security incident waiting to happen. This utility decodes headers and claims strictly in memory, flags dangerous footguns like alg: "none" or missing exp claims, and cryptographically verifies HS256/HS384/HS512 signatures locally using your browser's native window.crypto.subtle engine.

Algorithm (alg)
-
Signature Check
-
Expiration (exp)
-
HTTP Header Size
0 B
HEADER (Decoded)

      
PAYLOAD (Unencrypted Base64URL JSON)

      

SHA-256:

Exact JWT Signing & Verification Formula (RFC 7519)

A compact JSON Web Signature (JWS) never encrypts its payload—it simply encodes two JSON objects into URL-safe Base64 and signs their exact dot-joined ASCII string:

H = Base64URL( UTF8( Header_JSON ) )
P = Base64URL( UTF8( Payload_JSON ) )
Signing_Input = H + "." + P
Signature = Base64URL( HMAC_SHA256( Secret_Key, Signing_Input ) )
JWT = H + "." + P + "." + Signature
  • Never trust unverified header algorithms: Always enforce an explicit algorithm allowlist on your backend verification call as mandated by RFC 8725 instead of trusting header.alg dynamically.
  • Base64URL is encoding, not encryption: Anyone intercepting a bearer header can decode claims instantly. Never store credentials, PII, or internal secrets inside a JWS payload.

Official Specifications & Standards

Common Production JWT Vulnerabilities

Failure Pattern Root Code Mistake Security Impact Production Fix
alg: "none" AcceptedVerifier blindly obeys untrusted headerComplete auth & privilege bypassHardcode allowed algorithm (e.g. RS256 / EdDSA)
HS/RS Key ConfusionValidating RSA public PEM as HMAC keyAttackers forge valid tokens using public keySeparate asymmetric vs symmetric verification keys
Missing expMinting non-expiring stateless tokensLeaked tokens remain permanently validEnforce short TTLs (5–15 min) + revocable refresh tokens
PII in ClaimsTreating Base64URL as confidentialityEmail/secret exposure in client logs & proxiesKeep payloads minimal (sub + scopes) or use JWE

Frequently Asked Questions

Does any JWT or HMAC secret ever leave my browser?

Never. Base64URL parsing, security claim audits, and WebCrypto HMAC/SHA-256 operations run 100% inside local tab memory with zero outbound API calls.

What other zero-tracking security & dev utilities are available?

Check password resistance in our local password entropy auditor, debug logs/Cron/JSON offline inside the private Cron/Regex/JSON validator, or explore all calculators at Syncroma Tools.

Suscribirse Subscribe