/** * Verify if the $password matches the $hash. * * @param string $password * @param string $hash * * @return bool True if $password matches $hash. Otherwise false is returned. */ public function verifyPasswordHash($password, $hash) { return $this->instance->verifyPasswordHash($password, $hash); }
public function testVerifyPasswordHash2() { $crypt = new Crypt(); $password = $crypt->createPasswordHash('login123'); $this->assertFalse($crypt->verifyPasswordHash('123login', $password)); }