ILIAS
trunk Revision v11.0_alpha-1761-g6dbbfa7b760
|
Public Member Functions | |
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... | |
![]() | |
isSupportedByRuntime () | |
Returns whether the encoder is supported by the runtime (PHP, HHVM, ...) More... | |
requiresSalt () | |
Returns whether the encoder requires a salt. More... | |
requiresReencoding (string $encoded) | |
Returns whether the encoded password needs to be re-encoded. More... | |
Additional Inherited Members | |
![]() | |
comparePasswords (string $knownString, string $userString) | |
Compares two passwords. More... | |
isPasswordTooLong (string $password) | |
Definition at line 30 of file class.ilMd5PasswordEncoder.php.
ilMd5PasswordEncoder::encodePassword | ( | string | $raw, |
string | $salt | ||
) |
Encodes the raw password.
string | $raw | The password to encode |
string | $salt | The salt |
Implements ilPasswordEncoder.
Definition at line 32 of file class.ilMd5PasswordEncoder.php.
References ilBasePasswordEncoder\isPasswordTooLong().
Referenced by isPasswordValid(), ilMd5PasswordEncoderTest\testExceptionIsRaisedIfThePasswordExceedsTheSupportedLengthOnEncoding(), and ilMd5PasswordEncoderTest\testPasswordShouldBeCorrectlyEncoded().
ilMd5PasswordEncoder::getName | ( | ) |
Returns a unique name/id of the concrete password encoder.
Implements ilPasswordEncoder.
Definition at line 46 of file class.ilMd5PasswordEncoder.php.
Referenced by ilMd5PasswordEncoderTest\testNameShouldBeMd5().
ilMd5PasswordEncoder::isPasswordValid | ( | string | $encoded, |
string | $raw, | ||
string | $salt | ||
) |
Checks a raw password against an encoded password.
The raw password has to be injected into the encoder instance before.
string | $encoded | An encoded password |
string | $raw | A raw password |
string | $salt | The salt, may be empty |
Implements ilPasswordEncoder.
Definition at line 41 of file class.ilMd5PasswordEncoder.php.
References ilBasePasswordEncoder\comparePasswords(), encodePassword(), and ilBasePasswordEncoder\isPasswordTooLong().
Referenced by ilMd5PasswordEncoderTest\testPasswordCanBeVerified(), and ilMd5PasswordEncoderTest\testPasswordVerificationShouldFailIfTheRawPasswordExceedsTheSupportedLength().