Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
saveToAsciiSafeString () | |
unlockKey ($password) | |
changePassword ($current_password, $new_password) | |
Fonctions membres publiques statiques | |
static | createRandomPasswordProtectedKey ($password) |
static | loadFromAsciiSafeString ($saved_key_string) |
Champs de données | |
const | PASSWORD_KEY_CURRENT_VERSION = "\xDE\xF1\x00\x00" |
Fonctions membres privées | |
__construct ($encrypted_key) | |
Attributs privés | |
$encrypted_key = '' | |
|
private |
Constructor for KeyProtectedByPassword.
string | $encrypted_key |
Références KeyProtectedByPassword\$encrypted_key.
changePassword | ( | $current_password, | |
$new_password | |||
) |
Changes the password.
string | $current_password | |
string | $new_password |
Ex |
Références KeyProtectedByPassword\$encrypted_key, $this, Crypto\encryptWithPassword(), Core\HASH_FUNCTION_NAME, true, et KeyProtectedByPassword\unlockKey().
|
static |
Creates a random key protected by the provided password.
string | $password |
Ex |
Références KeyProtectedByPassword\$encrypted_key, $password, Key\createNewRandomKey(), Crypto\encryptWithPassword(), Core\HASH_FUNCTION_NAME, et true.
|
static |
Loads a KeyProtectedByPassword from its encoded form.
string | $saved_key_string |
Ex |
Références KeyProtectedByPassword\$encrypted_key, et Encoding\loadBytesFromChecksummedAsciiSafeString().
saveToAsciiSafeString | ( | ) |
Encodes the KeyProtectedByPassword into a string of printable ASCII characters.
Ex |
Références Encoding\saveBytesToChecksummedAsciiSafeString().
unlockKey | ( | $password | ) |
Decrypts the protected key, returning an unprotected Key object that can be used for encryption and decryption.
Ex |
Références $password, Crypto\decryptWithPassword(), Core\HASH_FUNCTION_NAME, et Key\loadFromAsciiSafeString().
Référencé par KeyProtectedByPassword\changePassword().
|
private |
const PASSWORD_KEY_CURRENT_VERSION = "\xDE\xF1\x00\x00" |