Last active
March 16, 2017 23:39
-
-
Save falmar/161eb98371d8640ffc39963d38a3afb9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://php.net/manual/en/function.password-hash.php | |
$password = password_hash($string, PASSWORD_BCRYPT, ['cost' => 9]); | |
// http://php.net/manual/en/function.password-verify.php | |
$correct = password_verify($string, $password); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment