getOptions()); } /** * @param string $password Input password to validate * @param string $hash Hash to verify password against * * @return boolean true if password matches hash */ public function verify(string $password, string $hash): bool { return \password_verify($password, $hash); } /** * Get default options for specific hashing algo * * @return array options named array */ public function getDefaultOptions(): array { return ['memory_cost' => 65536, 'time_cost' => 4, 'threads' => 3]; } }