Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is not really ideal either, because the hash becomes the password. If an attacker got the hashes from your DB, he would only need to send the stolen hash to the server to authenticate.

The ideal way to deal with passwords would be something like SCRAM [1], but you are adding a bunch of complexity on the client side, and you'd need to trust your JS libraries.

[1] https://en.wikipedia.org/wiki/Salted_Challenge_Response_Auth...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: