Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $username = "home@gmail.com";
- $pw = "blabla";
- $salt = "dfolkjghepöüoizut43w984";
- $password = $username.$pw.$salt;
- // $hash = password_hash($password, PASSWORD_DEFAULT);
- // Store Hash
- $hash = "$2y$10$1SLsFQQ7qOEQ9336JmlRk.IKeRV9y6cUGAWwjFBzFJHBVciQzVU4u";
- echo $hash."\n\r";
- if (password_verify($password, $hash)) {
- // Password Is Correct
- echo "ok";
- } else {
- // Password Is Not Correct
- echo "nope";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement