Created
October 5, 2019 07:24
-
-
Save caironm/24a4312a479f4aa3bc2a32625bb47c9b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<?php | |
// Verifique o hash que provavelmente deve vir do banco | |
$hash = '$2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq'; | |
if (password_verify('rasmuslerdorf', $hash)) { | |
echo 'Senha é válida!'; | |
} else { | |
echo 'Senha é inválida.'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment