noun
Password hashing is a security technique that transforms plain-text passwords into scrambled, fixed-length strings of characters using a mathematical algorithm. Unlike encryption, hashing is irreversible—you can’t retrieve the original password from the hash.
It works by feeding the password into a hashing function (like SHA-256 or bcrypt), which produces a unique output. If someone steals the hashed data, they can’t easily reverse-engineer the passwords. However, if two users have the same password, their hashes will match, so modern systems add random data (a ‘salt’) to each hash to prevent this.
For users, hashing means their passwords are never stored in plain text, even if a database is hacked. For developers, it requires using strong hashing algorithms and salting. A real-world example: In 2020, a company with 500,000 users had their database leaked, but because they used bcrypt hashing, attackers couldn’t crack most passwords.
When you create an account, the website stores a hash of your password, not the password itself.
See also: brute-force attack