Example #1
0
 protected function passwordHash($password)
 {
     $stretching = ipGetOption('Admin.passwordStretchingIterations', 8);
     $hasher = new \Ip\Lib\PasswordHash($stretching, ipGetOption('Ip.portableAdminHashes', true));
     return $hasher->HashPassword($password);
 }
Example #2
0
 private static function checkHash($password, $storedHash)
 {
     $hasher = new \Ip\Lib\PasswordHash(8, ipGetOption('Ip.portableAdminHashes', true));
     $hasher->CheckPassword($password, $storedHash);
     return $hasher->CheckPassword($password, $storedHash);
 }