The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Try out my first PHP web app! Reply To: Try out my first PHP web app!


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: