Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

php hashed password creation

Tags:

php

passwords

I am looking to create a commercial website using php and I wanted to make sure the code I have for user hashed password was strong enough to avoid brute force attacks.

Note that my server and it's php version does not support blowfish so I am trying to figure out a decent method of hashing a password.

$pw = "12341234";
$salt = 'randomchars';
$initial = sha1($pw);
$hashed = md5($salt . $initial);

Is there something else I should be considering? any thoughts would be appreciated!

like image 710
Kevin Jung Avatar asked Aug 26 '26 10:08

Kevin Jung


1 Answers

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

like image 114
chx Avatar answered Aug 27 '26 23:08

chx



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!