How hash generator works
A hash function takes any input and produces a fixed-size string of characters (the hash) that uniquely identifies the input. Even a tiny change to the input produces a completely different hash. This makes hashes ideal for verifying data integrity, storing passwords, and creating digital signatures.
This generator uses the Web Crypto API (crypto.subtle.digest), which provides cryptographically secure hashing. It supports SHA-1 (160 bits), SHA-256 (256 bits), SHA-384 (384 bits), and SHA-512 (512 bits). SHA-256 is the most commonly used today; SHA-1 is considered weak for security purposes but is still used in some legacy systems like Git.
All hashing happens in your browser. The text you enter never leaves your device. Note that hashing is one-way: you cannot reverse a hash to get the original text. For password storage, always use a salted slow hash function like bcrypt or argon2 instead of plain SHA.