Lines Matching refs:hash
49 function test_cryptPassword($method, $hash) { argument
51 $hash,
61 function test_verifyPassword($method, $hash) { argument
62 $this->assertTrue(auth_verifyPassword('foo' . $method, $hash));
63 $this->assertFalse(auth_verifyPassword('bar' . $method, $hash));
71 function test_verifySelf($method, $hash) { argument
72 $hash = auth_cryptPassword('foo' . $method, $method);
73 $this->assertTrue(auth_verifyPassword('foo' . $method, $hash));
81 function test_verifyUnusable($method, $hash) { argument
82 $hash = auth_cryptPassword(null, $method);
83 $this->assertFalse(auth_verifyPassword(null, $hash));
87 $hash = auth_cryptPassword('foobcrypt', 'bcrypt');
88 $this->assertTrue(auth_verifyPassword('foobcrypt', $hash));
114 …$hash='PBKDF2SHA256$10000$99227b6df52aa1394b5ca0aceee2733dd6c2670c85bbe26c751a2c65e79d4db7$d61dd1c…
116 $this->assertTrue(auth_verifyPassword($pw, $hash));