Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
checkIfRehashNeeded (string $hash) | |
hashPassword ($plaintext, array $options=[]) | |
validatePassword ($plaintext, $hashed) | |
Fonctions membres publiques statiques | |
static | isSupported () |
Password handler for MD5 hashed passwords
checkIfRehashNeeded | ( | string | $hash | ) |
Check if the password requires rehashing
string | $hash | The password hash to check |
Implémente CheckIfRehashNeededHandlerInterface.
hashPassword | ( | $plaintext, | |
array | $options = [] |
||
) |
Generate a hash for a plaintext password
string | $plaintext | The plaintext password to validate |
array | $options | Options for the hashing operation |
Implémente HandlerInterface.
Références UserHelper\genRandomPassword().
|
static |
Check that the password handler is supported in this environment
Implémente HandlerInterface.
validatePassword | ( | $plaintext, | |
$hashed | |||
) |
Validate a password
string | $plaintext | The plain text password to validate |
string | $hashed | The password hash to validate against |
Implémente HandlerInterface.
Références $parts, et Crypt\timingSafeCompare().