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

You can set the work factor (log rounds). Bcrypt is also cool because it doesn't scale well to GPUs, so it's still pretty slow even if you have decent hardware.

The rounds are a trade off between how long your users will wait to login and how strong the hashes will be. The current recommendation is between 8 and 12 depending where you look. The best practice is to just check on the system you are running, I usually aim for the number of rounds nearest a half a second.



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

Search: