Home › Forums › Back End › Try out my first PHP web app! › Reply To: Try out my first PHP web app!
August 4, 2014 at 12:41 pm
#177574
Alen
Participant
A code review would probably be more helpful at this stage.
I’ll just keep quoting @traq. He’s on fire!
PHP 5.5 Password hashing API is just a wrapper for bcrypt().
# Hash password
$password = password_hash('12345', PASSWORD_BCRYPT, ['cost' => 10]);
# Check password
if ( password_verify('12345', $password) )
{
echo 'Wazzzaaauuupppp';
}
For older PHP versions: https://github.com/ircmaxell/password_compat