|
|
|
|
|
by mnw21cam
331 days ago
|
|
If the hashing is done on the client and then sent to the server, then the server is effectively just processing as a plaintext password. If an attacker gets hold of the server password database, then they can just connect to the server and pretend to be the client and hand it the hashed password that they read from the database breach. If you hash the password on the server instead, then if the password database is breached, then an attacker needs to actually reverse the hash[0] and find the original password in order to log in, because that's all that the server will accept. [0] Note, this should be difficult[1]
[1] In crypto, "difficult" should mean "impossible before the end of the universe" |
|