News for hackers. Stuff that matters.
Re:Okta Bcrypt incident lessons for designing better APIs by xmprt on Wednesday February 05, 2025 @05:58PM (#42956585)
To be fair, I can't think of a single context where I would want to truncate a password before hashing so interoperability with other systems isn't worth letting by a dangerous edge case in my opinion. I'd rather have the system break for the handful of users with a 72+ char password than overlook a potential critical security issue.
Re:Okta Bcrypt incident lessons for designing better APIs by masklinn on Thursday February 06, 2025 @04:55AM (#42960811)
You might need it if you’re porting / reimplementing a system and have to be compatible with an existing base of hashed truncated passwords.

I would agree that it should not just be called “bcrypt” though, likely no function of this module should be, they should either explain their risks or clarify their safety.

Or possibly only a version which fails if passed more than 72 bytes or any nul.