Example #1
0
 public function verify($password, $hash)
 {
     if (strlen($hash) <= 32) {
         return $hash == md5($password);
     }
     return parent::verify($password, $hash);
 }
 public function testUpgrade()
 {
     $hasher = new PortableHasher(8, true);
     $hash = $hasher->hash('test12345');
     $this->assertInternalType('string', $hasher->upgrade('test12345', $hash));
 }