News for hackers. Stuff that matters.
Re:BitTorrent v2 (2020) by xblau on Monday January 10, 2022 @12:37PM (#29878385)
> Why isn’t SHA256 good as a password hash?

Because it wasn't designed for it. For password hashing you want a hash that has a salt (so that the same password on two accounts doesn't have the same hash on the database) and is as slow as possible (that is, fast enough to validate on logins) to increase brute-force time.

Historically Bcrypt was a good option, but I think Argon2[0] is the current best option.

[0] https://en.wikipedia.org/wiki/Argon2

Re:BitTorrent v2 (2020) by otterley on Monday January 10, 2022 @02:04PM (#29879910)
I thought adding a salt to a password before hashing it was standard practice, regardless of the hashing function. At least that's how UNIX derivatives have done it for the past 25+ years.

Point taken about hash calculation speed, though.