This opens up the possibility of replay attacks in the case of data breaches, though, and those are much more common than http mitm attacks (made even less likely with the proliferation of https).
I’m not entirely sure whether hashing twice (local and server) is wise, having not thought through that entire threat vector. Generally I try to offload auth as much as I can to some sort of oauth provider, and hopefully they’ll all switch over to webauthn soon anyway.
beefcat@lemmy.world 1 year ago
but then you expose your salt to the public
RonSijm@programming.dev 1 year ago
No, the client side hashing doesn’t substitutes anything server side, it just adds an extra step in the client