4require_once 
'Services/Password/interfaces/interface.ilPasswordEncoder.php';
 
   30        $known_string .= chr(0);
 
   31        $user_string .= chr(0);
 
   33        $known_string_length = strlen($known_string);
 
   34        $user_string_length = strlen($user_string);
 
   37        $result = $known_string_length - $user_string_length;
 
   41        for (
$i = 0; 
$i < $user_string_length; 
$i++) {
 
   45            $result |= (ord($known_string[
$i % $known_string_length]) ^ ord($user_string[
$i]));
 
An exception for terminatinating execution or to throw for unit testing.
requiresSalt()
{Returns whether or not the encoder requires a salt.boolean}
comparePasswords($known_string, $user_string)
Compares two passwords.
isPasswordTooLong($password)
Checks if the password is too long.
isSupportedByRuntime()
{Returns whether or not the encoder is supported by the runtime (PHP, HHVM, ...)boolean}
const MAX_PASSWORD_LENGTH
requiresReencoding($encoded)
{Returns whether or not the a encoded password needs to be re-encoded.boolean}