Why are passwords hashed rather than encrypted, and which algorithms should you use?
Tap to flip
Back
Hashing is one-way, so even the server (or an attacker who steals the database) cannot recover the password. Use slow, salted password hashes: Argon2id, bcrypt or scrypt. Fast hashes like MD5 or plain SHA-256 are far too quick to brute force.