Advertisement
jonnybarnes

PHPass

Oct 27th, 2011
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.26 KB | None | 0 0
  1. <?php
  2.  
  3. include("PasswordHash.php");
  4.  
  5. $password = 'test123';
  6.  
  7. $hasher = new PasswordHash(8, false);
  8.  
  9. $hash = $hasher->HashPassword($password);
  10.  
  11. if(strlen($hash > 20))
  12. {
  13.         echo $hash;
  14. }
  15. else
  16. {
  17.         echo 'hash less than 20 chars: ' . $hash;
  18. }
  19. ?>
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement