News for hackers. Stuff that matters.
Re:Show HN: HackerForums.co, a forum for the crowd that hang... by mygo on Thursday May 17, 2018 @10:28PM (#17098195)
You don’t need to hash a password over the client so long as it’s sent over an encrypted network. The goal of submitting a password is that it’s not sent in open plaintext. Otherwise even if you hash it on the client, the plaintext hash can still be intercepted and used, exactly as-is, as the plaintext password.
Re:Show HN: HackerForums.co, a forum for the crowd that hang... by 0xCMP on Friday May 18, 2018 @12:28AM (#17098693)
You can if you don't want the authenticating side to actually know the plain text.

e.g. password + client_salt => hash => send to server => (hash+server_salt)^hash2 => compare to db

By doing this you'd protect a user when their password might be accidentally logged (e.g. Twitter recently). Then if you compromise the hash you don't immediately reveal the password itself, just the text needed to authenticate, which can be changed. If you simply change the salt used client side you may not even need to have the user change their password (although obviously better if they did).

That said, I don't think this is required, but there is actually a case for it. Also obviously you should never log the password, but mistakes are made. This helps mitigate the risk of that password being exposed.

Re:Show HN: HackerForums.co, a forum for the crowd that hang... by mygo on Friday May 18, 2018 @10:03AM (#17101531)
I agree. So long as the plaintext hashes are hashed again on the sever, then it’s more secure.