public static function compare($input, $hash, $isHash = false)
    {
        if (Symphony::Log()) {
            Symphony::Log()->pushDeprecateWarningToLog('MD5::compare()', 'PBKDF2::compare()', array(
                'message-format' => __('The use of `%s` is strongly discouraged due to severe security flaws.'),
            ));
        }
        return ($hash == self::hash($input));
    }
public static function compare($input, $hash, $isHash = false)
    {
        if (Symphony::Log()) {
            Symphony::Log()->pushDeprecateWarningToLog('MD5::compare()', 'PBKDF2::compare()', array(
                'message-format' => __('The use of `%s` is strongly discouraged due to severe security flaws.'),
            ));
        }
        return ($hash == self::hash($input));
    }
public static function compare ( $ input , $ hash , $ isHash = false ) { if ( Symphony :: Log ( ) ) { Symphony :: Log ( ) -> pushDeprecateWarningToLog ( 'MD5::compare()' , 'PBKDF2::compare()' , array ( 'message-format' => __ ( 'The use of `%s` is strongly discouraged due to severe security flaws.' ) , ) ) ; } return ( $ hash == self :: hash ( $ input ) ) ; }
Compares a given hash with a cleantext password.

@param string $input
the cleartext password
@param string $hash
the hash the password should be checked against
@param boolean $isHash
@return bool
the result of the comparison
Compares a given hash with a cleantext password .