Guest User

Phalcon PHP Security::hash + password_verify compat

a guest
Jan 30th, 2014
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. $security = new Phalcon\Security();
  4. $password = 'password';
  5. $hash = $security->hash($password);
  6.  
  7. var_dump($security->checkHash($password, $hash));
  8. var_dump(password_verify($password, $hash));
Advertisement
Add Comment
Please, Sign In to add comment