null); /** * Generates password hash. * * @param string $password Plain text password to hash. * @return string Password hash */ public function hash($password) { return Security::hash($password, $this->_config['hashType'], true); } /** * Check hash. Generate hash for user provided password and check against existing hash. * * @param string $password Plain text password to hash. * @param string Existing hashed password. * @return boolean True if hashes match else false. */ public function check($password, $hashedPassword) { return $hashedPassword === $this->hash($password); } }