Skip to content

Instantly share code, notes, and snippets.

@caironm
Created October 5, 2019 07:24
Show Gist options
  • Save caironm/24a4312a479f4aa3bc2a32625bb47c9b to your computer and use it in GitHub Desktop.
Save caironm/24a4312a479f4aa3bc2a32625bb47c9b to your computer and use it in GitHub Desktop.
<?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