public static function passwordCheck (string $password, string $existingHash) : bool
	{
		// Existing hash contains format and salt at start
		$hash = crypt($password, $existingHash);
		return ($hash == $existingHash) ? TRUE : FALSE;
	}
public static function passwordCheck (string $password, string $existingHash) : bool
	{
		// Existing hash contains format and salt at start
		$hash = crypt($password, $existingHash);
		return ($hash == $existingHash) ? TRUE : FALSE;
	}
public static function passwordCheck ( string $ password , string $ existingHash ) : bool { // Existing hash contains format and salt at start $ hash = crypt ( $ password , $ existingHash ) ; return ( $ hash == $ existingHash ) ? TRUE : FALSE ; }
Check password with existing hashed password.
@param string $password
@param string $existingHash
@return bool
Check password with existing hashed password .