SHA-256 Generator
Compute SHA-256 hashes. 256-bit output in hex and Base64.
Free online SHA-1 hash generator. Generate a 160-bit SHA-1 hash from any text instantly. Output in hex and Base64. Note: SHA-1 is deprecated for security use; use SHA-256 for new systems.
Algorithm
SHA-1 was designed by the NSA and published by NIST in 1995 as a revision of SHA-0, which had an undisclosed flaw. For two decades it was the dominant cryptographic hash function, used in TLS, S/MIME, PGP, SSH, and git. The SHAttered attack in 2017 demonstrated a practical collision with only 2^63.1 SHA-1 computations, far fewer than the 2^80 expected from brute force. As a result, all security-critical uses have migrated to SHA-2 or SHA-3. SHA-1 remains useful for generating short identifiers and checksums in non-adversarial contexts. This tool computes SHA-1 using the browser's SubtleCrypto API.