0

How to write a function that generates a password like in moodle, what file is algorithm in, what file is the salt in?

is it?

password_hash( "123", PASSWORD_BCRYPT, array( "salt" => "SALT" ) );

1 Answers1

1

https://github.com/moodle/moodle/blob/master/lib/moodlelib.php#L4678

password_hash($password, PASSWORD_DEFAULT, []);
davosmith
  • 6,037
  • 2
  • 14
  • 23