|
ILIAS
Release_5_0_x_branch Revision 61816
|
Inheritance diagram for ilBasePasswordEncoder:
Collaboration diagram for ilBasePasswordEncoder:Data Fields | |
| const | MAX_PASSWORD_LENGTH = 4096 |
Protected Member Functions | |
| comparePasswords ($known_string, $user_string) | |
| Compares two passwords. | |
| isPasswordTooLong ($password) | |
| Checks if the password is too long. | |
Additional Inherited Members | |
Public Member Functions inherited from ilPasswordEncoder | |
| encodePassword ($raw, $salt) | |
| Encodes the raw password. | |
| isPasswordValid ($encoded, $raw, $salt) | |
| Checks a raw password against an encoded password. | |
| getName () | |
| Returns a unique name/id of the concrete password encoder. | |
| requiresSalt () | |
| Returns whether or not the encoder requires a salt. | |
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().
Here is the caller graph for this function:
|
protected |
Checks if the password is too long.
| string | $password | The password |
Definition at line 58 of file class.ilBasePasswordEncoder.php.
References MAX_PASSWORD_LENGTH.
Referenced by ilMd5PasswordEncoder\encodePassword(), ilBcryptPasswordEncoder\encodePassword(), ilMd5PasswordEncoder\isPasswordValid(), and ilBcryptPasswordEncoder\isPasswordValid().
Here is the caller graph for this function:| const ilBasePasswordEncoder::MAX_PASSWORD_LENGTH = 4096 |
Definition at line 16 of file class.ilBasePasswordEncoder.php.
Referenced by isPasswordTooLong().