2 ms·
> It could be done on the client No, that's actually too early -- if you let the client hash the password, you're vulnerable to a "pass-the-hash" attack where
by duskwuff 3y ago
> It could be done on the client
No, that's actually too early -- if you let the client hash the password, you're vulnerable to a "pass-the-hash" attack where the client submits a hash without knowing the password.
There are protocols like SRP and other PAKEs which allow this to be done securely, but it's uncommon for them to be used in web applications.
- Wingy 3y agoMy reasoning was that if you can capture the hash, you could have also captured the password but that doesn't account for a situation where the database is compromised.