SHARE
TWEET

Untitled

a guest Oct 3rd, 2017 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $username = $_POST['username'];
  2. $password= $_POST['username'];
  3.  
  4. > Get the row from the database for username = username
  5. > Hash $password with the 2nd argument as the hash from the database
  6. > if $password = our hashed result, then the password was correct
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top