Advertisement
ozh

testing phpass on PHP 5.2.x

ozh
Dec 30th, 2013
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // testing on http://sandbox.onlinephpfunctions.com/
  2.  
  3. $stored_hash = '$2a$08$UbOIKE2oyh.shrjSkOJ3Au7zN2vqTkrhsmAFgaMPomfeS0S6xHjG6';
  4. $password = 'phpass';
  5.  
  6. $crypt = crypt($password, $stored_hash);
  7.  
  8. var_dump( $crypt );
  9. var_dump( $crypt == $stored_hash ); // should be true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement