Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #hash
ADD COMMENT
Topic
Name
1+2 =