News for hackers. Stuff that matters.
Re:Better Auth, a TypeScript authentication library, raises ... by stephenr on Wednesday June 25, 2025 @09:00PM (#44383269)
> Storing password hashes in an inappropriate manner

The problem isn't how you store the hash it's how you generate the hash.

Re:Better Auth, a TypeScript authentication library, raises ... by quacksilver on Wednesday June 25, 2025 @10:54PM (#44383825)
Counterexample: Storing the bcrypt hash by appending it to a CSV file containing the usernames and hashes of all users then having a login process where that CSV file is downloaded to the client and the password is verified locally against that CSV file using client-side JavaScript would probably be very bad.

Cryptography part is fine but storage or the auth process isn't.

You would like to think that no-one would write their app that way, but there are plenty of slightly less worse things that happen in practice and vibe coding probably introduces all sorts of new silliness.

Re:Better Auth, a TypeScript authentication library, raises ... by gjsman-1000 on Wednesday June 25, 2025 @10:13PM (#44383633)
The short answer: Bcrypt with 12 rounds.

Good enough for almost any startup in 2025.

Re:Better Auth, a TypeScript authentication library, raises ... by Intermernet on Thursday June 26, 2025 @06:46AM (#44386072)
Argon2 with defaults. Stronger and easier.