Hacker News new | ask | show | jobs
by pwaring 5025 days ago
Or you can use this library:

http://www.openwall.com/phpass/

It does all the work for you, and will even fall back to other algorithms if you don't have bcrypt available.