예제 #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);
 }
예제 #2
0
파일: Model.php 프로젝트: Umz/ImpressPages
 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);
 }