TVar Posted June 1, 2013 Share Posted June 1, 2013 I'm trying to donut in my code. 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 hash($hashAlgorithm, $toBeHashed); For example: public function hashpassword($pass) { return hash("sha512", $pass); } 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. 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). 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 On 6/1/2013 at 1:45 PM, boompa said: 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.... 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 On 6/1/2013 at 11:54 AM, TVar said: 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. 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
Archived
This topic is now archived and is closed to further replies.