Answers for "hashing method 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
2

php hash

<?php
echo hash('ripemd160', 'The quick brown fox jumped over the lazy dog.');
?>
Posted by: Guest on July-29-2020

Browse Popular Code Answers by Language