As long as you use https encrypting client side wont add anything to security. As a server you cant trust anything done client side so you need to hash too.
No, then the transferred hash would be the actual password so a leaked database would allow attackers to log in by sending those hashes. If you hash client-side, you need a second hashing step on the server as well.
You are right your new password would just become the hash of your password, but i was refering to hashing client side and then serverside again. As i said it just wouldnt add security but its not removing it ether.
Https just encrypts the transport to prevent wiretapping(aka man in the middle). The client/your browser knows the password anyway so you dont need to encrypt it there. The server just hashes the password to compare it to the serverside stored hash(bc storing the password in plaintext on the server would be a sceurity risk)
11
u/McMasilmof Feb 21 '18
As long as you use https encrypting client side wont add anything to security. As a server you cant trust anything done client side so you need to hash too.