Better HN
topnewbestaskshowjobs
Log inSign up

triou

5 karma · joined Jun 5, 2020 (6y ago) · 1 submissions

Submissions

comment 6y ago · link · parent

That is why he said, we should do both: hashing client AND server side. Hashing on the client prevents sending plain text passwords to the server which could mishandle them eg. Logging them for instance like Twitter once did. Client side you can also check on registration if the user password is known to have been pwned (1password offers an api for that) and use a secure hashing algorithm. Server side the hash (which is then the password) will be salted and hashed again.