Answers for "php create a hash array"

PHP
6

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
0

hash php

$password = md5($_POST['password']);
Posted by: Guest on November-22-2021

Browse Popular Code Answers by Language