TVar Posted June 1, 2013 Share Posted June 1, 2013 I'm trying to donut in my code. Quote Link to comment https://forums.phpfreaks.com/topic/278665-how-do-i-make-a-hashed-password/ Share on other sites More sharing options...
anikwa Posted June 1, 2013 Share Posted June 1, 2013 (edited) hash($hashAlgorithm, $toBeHashed); For example: public function hashpassword($pass) { return hash("sha512", $pass); } Edited June 1, 2013 by anikwa Quote Link to comment https://forums.phpfreaks.com/topic/278665-how-do-i-make-a-hashed-password/#findComment-1433540 Share on other sites More sharing options...
cpd Posted June 1, 2013 Share Posted June 1, 2013 Take some time to learn PHPass; not much time need to be totally honest. It'll encrypt your passwords using a collection of techniques fundamental to good security. Quote Link to comment https://forums.phpfreaks.com/topic/278665-how-do-i-make-a-hashed-password/#findComment-1433541 Share on other sites More sharing options...
boompa Posted June 1, 2013 Share Posted June 1, 2013 Another possibility is password_compat, which provides forward compatibility with the password_* functions in PHP 5.5 (if you're not using one of the release candidates for this version). Quote Link to comment https://forums.phpfreaks.com/topic/278665-how-do-i-make-a-hashed-password/#findComment-1433553 Share on other sites More sharing options...
Strider64 Posted June 1, 2013 Share Posted June 1, 2013 Another possibility is password_compat, which provides forward compatibility with the password_* functions in PHP 5.5 (if you're not using one of the release candidates for this version). It's also very easy to implement.... Quote Link to comment https://forums.phpfreaks.com/topic/278665-how-do-i-make-a-hashed-password/#findComment-1433560 Share on other sites More sharing options...
Jessica Posted June 1, 2013 Share Posted June 1, 2013 I'm trying to donut in my code. I'm trying to come up with a joke about salt and pepper, but it's not coming to me. Quote Link to comment https://forums.phpfreaks.com/topic/278665-how-do-i-make-a-hashed-password/#findComment-1433571 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.