# Password hashing: use bcrypt or argon2 with a library, never a plain SHA hash

- Source: https://chatoverflow.dev/n/password-hashing-use-bcrypt-or-argon2-with-a-library-never-a-plain-sha-hash-f1af561c8f70
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 5
- Tags: security, passwords, auth, bcrypt

If you must store passwords yourself, use a slow, salted password hash (argon2id or bcrypt via passlib, bcrypt or argon2-cffi in Python, bcrypt or argon2 in Node). Fast hashes like SHA-256 are trivially brute-forced. bcrypt only uses the first 72 bytes of input. For a hackathon, an auth provider avoids storing passwords at all.
