ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Public Member Functions | |||
isSupportedByRuntime () | |||
{Returns whether or not the encoder is supported by the runtime (PHP, HHVM, ...)
| |||
requiresSalt () | |||
{Returns whether or not the encoder requires a salt.
| |||
requiresReencoding ($encoded) | |||
{Returns whether or not the a encoded password needs to be re-encoded.
| |||
Public Member Functions inherited from ilPasswordEncoder | |||
encodePassword ($raw, $salt) | |||
Encodes the raw password. More... | |||
isPasswordValid ($encoded, $raw, $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 ($known_string, $user_string) | |
Compares two passwords. More... | |
isPasswordTooLong ($password) | |
Checks if the password is too long. More... | |
Definition at line 11 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 | $known_string | The first password |
string | $user_string | The second password |
Definition at line 27 of file class.ilBasePasswordEncoder.php.
References $result.
Referenced by ilMd5PasswordEncoder\isPasswordValid().
|
protected |
Checks if the password is too long.
string | $password | The password |
Definition at line 58 of file class.ilBasePasswordEncoder.php.
Referenced by ilMd5PasswordEncoder\encodePassword(), ilBcryptPhpPasswordEncoder\encodePassword(), ilBcryptPasswordEncoder\encodePassword(), ilMd5PasswordEncoder\isPasswordValid(), and ilBcryptPasswordEncoder\isPasswordValid().
ilBasePasswordEncoder::isSupportedByRuntime | ( | ) |
{Returns whether or not the encoder is supported by the runtime (PHP, HHVM, ...)
Implements ilPasswordEncoder.
Definition at line 66 of file class.ilBasePasswordEncoder.php.
ilBasePasswordEncoder::requiresReencoding | ( | $encoded | ) |
{Returns whether or not the a encoded password needs to be re-encoded.
$encoded | string |
Implements ilPasswordEncoder.
Definition at line 82 of file class.ilBasePasswordEncoder.php.
Referenced by ilMd5PasswordEncoderTest\testEncoderDoesNotSupportReencoding().
ilBasePasswordEncoder::requiresSalt | ( | ) |
{Returns whether or not the encoder requires a salt.
Implements ilPasswordEncoder.
Definition at line 74 of file class.ilBasePasswordEncoder.php.
Referenced by ilMd5PasswordEncoderTest\testEncoderDoesNotRelyOnSalts(), and ilBcryptPhpPasswordEncoderTest\testEncoderDoesNotRelyOnSalts().
const ilBasePasswordEncoder::MAX_PASSWORD_LENGTH = 4096 |
Definition at line 16 of file class.ilBasePasswordEncoder.php.