19 declare(strict_types=1);
    42         $knownString .= chr(0);
    43         $userString .= chr(0);
    45         $known_string_length = strlen($knownString);
    46         $user_string_length = strlen($userString);
    48         $result = $known_string_length - $user_string_length;
    50         for ($i = 0; $i < $user_string_length; ++$i) {
    51             $result |= (ord($knownString[$i % $known_string_length]) ^ ord($userString[$i]));
    59         return strlen($password) > self::MAX_PASSWORD_LENGTH;
 requiresSalt()
Returns whether the encoder requires a salt. 
 
comparePasswords(string $knownString, string $userString)
Compares two passwords. 
 
requiresReencoding(string $encoded)
Returns whether the encoded password needs to be re-encoded. 
 
isSupportedByRuntime()
Returns whether the encoder is supported by the runtime (PHP, HHVM, ...) 
 
isPasswordTooLong(string $password)
 
const MAX_PASSWORD_LENGTH