ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Public Member Functions | |
isSupportedByRuntime () | |
requiresSalt () | |
requiresReencoding (string $encoded) | |
![]() | |
encodePassword (string $raw, string $salt) | |
Encodes the raw password. More... | |
isPasswordValid (string $encoded, string $raw, string $salt) | |
Checks a raw password against an encoded password. More... | |
getName () | |
Returns a unique name/id of the concrete password encoder. More... | |
Data Fields | |
const | MAX_PASSWORD_LENGTH = 4096 |
Protected Member Functions | |
comparePasswords (string $knownString, string $userString) | |
Compares two passwords. More... | |
isPasswordTooLong (string $password) | |
Checks if the password is too long. More... | |
Definition at line 9 of file class.ilBasePasswordEncoder.php.
|
protected |
Compares two passwords.
This method implements a constant-time algorithm to compare passwords to avoid (remote) timing attacks. http://codahale.com/a-lesson-in-timing-attacks/
string | $knownString | The first password |
string | $userString | The second password |
Definition at line 23 of file class.ilBasePasswordEncoder.php.
Referenced by ilBcryptPasswordEncoder\check(), and ilMd5PasswordEncoder\isPasswordValid().
|
protected |
Checks if the password is too long.
string | $password | The password |
Definition at line 46 of file class.ilBasePasswordEncoder.php.
Referenced by ilMd5PasswordEncoder\encodePassword(), ilBcryptPhpPasswordEncoder\encodePassword(), ilBcryptPasswordEncoder\encodePassword(), ilMd5PasswordEncoder\isPasswordValid(), and ilBcryptPasswordEncoder\isPasswordValid().
ilBasePasswordEncoder::isSupportedByRuntime | ( | ) |
Implements ilPasswordEncoder.
Definition at line 54 of file class.ilBasePasswordEncoder.php.
ilBasePasswordEncoder::requiresReencoding | ( | string | $encoded | ) |
Implements ilPasswordEncoder.
Definition at line 70 of file class.ilBasePasswordEncoder.php.
Referenced by ilMd5PasswordEncoderTest\testEncoderDoesNotSupportReencoding().
ilBasePasswordEncoder::requiresSalt | ( | ) |
Implements ilPasswordEncoder.
Definition at line 62 of file class.ilBasePasswordEncoder.php.
Referenced by ilMd5PasswordEncoderTest\testEncoderDoesNotRelyOnSalts(), and ilBcryptPhpPasswordEncoderTest\testEncoderDoesNotRelyOnSalts().
const ilBasePasswordEncoder::MAX_PASSWORD_LENGTH = 4096 |
Definition at line 12 of file class.ilBasePasswordEncoder.php.