public static function compare($known, $user) {
		$message  = "lithium\util\String::compare() has been deprecated in favor of ";
		$message .= "lithium\security\Hash::compare().";
		trigger_error($message, E_USER_DEPRECATED);

		return Hash::compare($known, $user);
	}
public static function compare($known, $user) {
		$message  = "lithium\util\String::compare() has been deprecated in favor of ";
		$message .= "lithium\security\Hash::compare().";
		trigger_error($message, E_USER_DEPRECATED);

		return Hash::compare($known, $user);
	}
public static function compare ( $ known , $ user ) { $ message = "lithium\util\String::compare() has been deprecated in favor of " ; $ message .= "lithium\security\Hash::compare()." ; trigger_error ( $ message , E_USER_DEPRECATED ) ; return Hash :: compare ( $ known , $ user ) ; }
Compares two strings in constant time to prevent timing attacks.

@deprecated Replaced by `lithium\security\Hash::compare()`.
@param string $known The string of known length to compare against.
@param string $user The user-supplied string.
@return boolean Returns a boolean indicating whether the two strings are equal.
Compares two strings in constant time to prevent timing attacks .