ILIAS
release_8 Revision v8.19
|
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... | |
requiresSalt () | |
Returns whether the encoder requires a salt. More... | |
requiresReencoding (string $encoded) | |
Returns whether the encoded password needs to be re-encoded. More... | |
isSupportedByRuntime () | |
Returns whether the encoder is supported by the runtime (PHP, HHVM, ...) More... | |
Definition at line 26 of file interface.ilPasswordEncoder.php.
ilPasswordEncoder::encodePassword | ( | string | $raw, |
string | $salt | ||
) |
Encodes the raw password.
string | $raw | The password to encode |
string | $salt | The salt |
Implemented in ilBcryptPasswordEncoder, ilBcryptPhpPasswordEncoder, and ilMd5PasswordEncoder.
ilPasswordEncoder::getName | ( | ) |
Returns a unique name/id of the concrete password encoder.
Implemented in ilBcryptPasswordEncoder, ilBcryptPhpPasswordEncoder, and ilMd5PasswordEncoder.
ilPasswordEncoder::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 |
Implemented in ilBcryptPasswordEncoder, ilBcryptPhpPasswordEncoder, and ilMd5PasswordEncoder.
ilPasswordEncoder::isSupportedByRuntime | ( | ) |
Returns whether the encoder is supported by the runtime (PHP, HHVM, ...)
Implemented in ilBasePasswordEncoder.
ilPasswordEncoder::requiresReencoding | ( | string | $encoded | ) |
Returns whether the encoded password needs to be re-encoded.
Implemented in ilBcryptPasswordEncoder, ilBcryptPhpPasswordEncoder, and ilBasePasswordEncoder.
ilPasswordEncoder::requiresSalt | ( | ) |
Returns whether the encoder requires a salt.
Implemented in ilBcryptPasswordEncoder, and ilBasePasswordEncoder.