(🇪🇸 Ver la versión en español de este Verificador SHA-256 y HMAC aquí)
Compute SHA-256, SHA-384, SHA-512, and HMAC digests on local files (binaries, container tarballs, PDFs, ISOs) or raw webhook payloads completely inside your browser's memory using native SubtleCrypto. Zero network transfers.
Source: UTF-8 Text Input (0 network requests)
...
Base64 Digest:
...
Computed HMAC Signature:
...
Exact SHA-256 & RFC 2104 HMAC Formulas
Unlike non-cryptographic checksums (such as CRC32, which can be collided deliberately in milliseconds), SHA-2 family digests process fixed 512- or 1024-bit padded message schedules via one-way compression functions. Pairing them with a secret key via HMAC defends against length-extension attacks.
M_padded = M || 0x80 || 0x00... (until L_bits ≡ 448 mod 512) || uint64_be(len_bits)
2. RFC 2104 HMAC Construction:
K' = (len(K) > B ? H(K) : K) zero-padded to block size B
HMAC(K,m)= H( (K' XOR 0x5c5c..5c) || H( (K' XOR 0x3636..36) || m ) )
3. Collision Resistance Bound (Birthday Paradox):
SHA-256 => 2^(256/2) = 2^128 operations (~3.4 × 10^38 evaluations)
Verified Official Cryptographic Standards
- W3C WebCrypto API (`SubtleCrypto.digest`): Hardware-accelerated native browser execution specification documented at MDN Web Docs — SubtleCrypto.digest().
- NIST Secure Hash Standard (FIPS 180-4): Authoritative specification for SHA-256, SHA-384, and SHA-512 published by NIST FIPS PUB 180-4.
- IETF HMAC Specification (RFC 2104): Formal definition of keyed-hashing for message authentication in IETF RFC 2104.
- Related Zero-Upload Privacy Tools: Inspect JWT payloads and verify HMAC signatures offline in our Private JWT Decoder & HMAC Verifier or test password cracking budgets in the Password Entropy Auditor.
Algorithm & Security Comparison
| Algorithm | Output Length | Internal Block | Collision Bound | Production Role in 2026 |
|---|---|---|---|---|
| SHA-256 | 256 bits (64 hex) | 512 bits (64 B) | 2128 | OCI image digests, release tars, TLS, webhook HMACs |
| SHA-384 | 384 bits (96 hex) | 1024 bits (128 B) | 2192 | ES384 JWTs, high-assurance PKI & CNSA profiles |
| SHA-512 | 512 bits (128 hex) | 1024 bits (128 B) | 2256 | Often beats SHA-256 throughput on 64-bit CPUs |
| SHA-1 | 160 bits (40 hex) | 512 bits (64 B) | Broken (~263) | Legacy checksum compatibility only — never trust for security |
Frequently Asked Questions
Are uploaded files or HMAC secret keys ever sent over the network?
Never. Files are read straight from disk into local browser memory via FileReader and digested via window.crypto.subtle. You can unplug your network interface after the page loads and every hash and HMAC computation continues working identically.
Why can SHA-512 outperform SHA-256 on large local files?
SHA-512 operates on 64-bit words over 1024-bit blocks, mapping directly onto native 64-bit integer ALUs in modern x86_64 and ARM64 chips—unless the CPU specifically exposes dedicated SHA-256 hardware instructions (SHA-NI / ARMv8 Crypto).
sha256sum (Linux) or Get-FileHash -Algorithm SHA256 (Windows PowerShell).