Answers for "sha 512 php"

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
0

php sha512

hash($hashingMethod, $dataToBeHashed, $BinaryOutputMode = false)
  
some hashingMethod options:

md5
sha1
sha256
sha384
sha512
Posted by: Guest on August-01-2021

Browse Popular Code Answers by Language