Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $username = 'username';
- $password = 'password';
- $hash = password_hash($password, PASSWORD_DEFAULT);
- // Verify
- $user_password = 'password';
- if (password_verify($user_password, $hash))
- echo 'Password Correct';
- else
- echo 'Password Incorrect';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement