News for hackers. Stuff that matters.
Re:Okta Bcrypt incident lessons for designing better APIs by sscarduzio on Wednesday February 05, 2025 @05:23PM (#42956159)
what I would have naturally done without anticipating any flaw (and probably be just OK):

   cache_key = sha(sha(id + username) + bcrypt(pass))
with sha256 or something.
Re:Okta Bcrypt incident lessons for designing better APIs by throwaway-9111 on Thursday February 06, 2025 @02:43AM (#42960067)
Why not a simple sha(id + username + bcrypt(pass))

Is there any security issues with that? I'm a "newb" in this area, so I'm genuinely curious about the flaws with the naive approach