ILIAS
Release_5_0_x_branch Revision 61816
|
Public Member Functions | |
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 9 of file interface.ilPasswordEncoder.php.
ilPasswordEncoder::encodePassword | ( | $raw, | |
$salt | |||
) |
Encodes the raw password.
string | $raw | The password to encode |
string | $salt | The salt |
Implemented in ilBcryptPasswordEncoder, and ilMd5PasswordEncoder.
ilPasswordEncoder::getName | ( | ) |
Returns a unique name/id of the concrete password encoder.
Implemented in ilBcryptPasswordEncoder, and ilMd5PasswordEncoder.
ilPasswordEncoder::isPasswordValid | ( | $encoded, | |
$raw, | |||
$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 |
Implemented in ilBcryptPasswordEncoder, and ilMd5PasswordEncoder.
ilPasswordEncoder::requiresSalt | ( | ) |
Returns whether or not the encoder requires a salt.
Implemented in ilBcryptPasswordEncoder, and ilMd5PasswordEncoder.