Answers for "php how to get the same hash as before"

PHP
5

php hash

$password = 'test123';

/*
	Always use salt for security reasons.
    I'm using the BCRYPT algorithm use any valid one you like.
*/
$options['salt'] = 'usesomesillystringforsalt';
$options['cost'] = 3;
echo password_hash($password, PASSWORD_BCRYPT, $options)
Posted by: Guest on March-30-2020

Code answers related to "php how to get the same hash as before"

Browse Popular Code Answers by Language