About this tool
Cryptographic hash functions are the foundation of data integrity verification, digital signatures, and secure content addressing. This inspector computes SHA-256, SHA-512, and SHA-1 digests simultaneously using the browser's native Web Crypto API.
Hash Algorithm Comparison
- SHA-256 — 256-bit output, the industry standard for file integrity and TLS certificates. Used by Bitcoin and Git.
- SHA-512 — 512-bit output, double the entropy of SHA-256. Preferred for password hashing in high-security environments.
- SHA-1 — 160-bit output, now considered cryptographically weak (collision-vulnerable). Included for legacy compatibility checks only.
Hash Output Formula
All SHA algorithms operate on the Merkle–Damgård construction, processing input in fixed blocks and producing a fixed-length digest:
Where IV is the algorithm's initialization vector, pad(m) is the length-padded message, and compress is the round-based compression function.
All hashing is performed 100% client-side using crypto.subtle.digest(). Your input never leaves your browser.