My code is like this :
<?php
$password = '12345';
echo bcrypt($password);
?>
It's not working
Its error is Fatal error: Call to undefined function bcrypt() in...
Whether to load library?
Thank you
My code is like this :
<?php
$password = '12345';
echo bcrypt($password);
?>
It's not working
Its error is Fatal error: Call to undefined function bcrypt() in...
Whether to load library?
Thank you
As noted in this answer, you can use the following:
<?php
$password = '12345';
echo password_hash($password, PASSWORD_DEFAULT)."\n";
?>