Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques statiques | |
static | encrypt ($plaintext, $key, $raw_binary=false) |
static | encryptWithPassword ($plaintext, $password, $raw_binary=false) |
static | decrypt ($ciphertext, $key, $raw_binary=false) |
static | decryptWithPassword ($ciphertext, $password, $raw_binary=false) |
Fonctions membres protégées statiques | |
static | verifyHMAC ($expected_hmac, $message, $key) |
Fonctions membres privées statiques | |
static | encryptInternal ($plaintext, KeyOrPassword $secret, $raw_binary) |
|
static |
Decrypts a ciphertext to a string with a Key.
string | $ciphertext | |
Key | $key | |
bool | $raw_binary |
Références $key, et KeyOrPassword\createFromKey().
Référencé par RuntimeTests\testEncryptDecrypt().
|
static |
Decrypts a ciphertext to a string with a password, using a slow key derivation function to make password cracking more expensive.
string | $ciphertext | |
string | $password | |
bool | $raw_binary |
Ex |
Références $password, et KeyOrPassword\createFromPassword().
Référencé par KeyProtectedByPassword\unlockKey().
|
static |
Encrypts a string with a Key.
string | $plaintext | |
Key | $key | |
bool | $raw_binary |
Ex |
Références $key, et KeyOrPassword\createFromKey().
Référencé par RuntimeTests\testEncryptDecrypt().
|
staticprivate |
Encrypts a string with either a key or a password.
string | $plaintext | |
KeyOrPassword | $secret | |
bool | $raw_binary |
Références Encoding\binToHex(), Core\BLOCK_BYTE_SIZE, Core\CURRENT_VERSION, KeyOrPassword\deriveKeys(), Core\HASH_FUNCTION_NAME, RuntimeTests\runtimeTest(), Core\SALT_BYTE_SIZE, et Core\secureRandom().
|
static |
Encrypts a string with a password, using a slow key derivation function to make password cracking more expensive.
string | $plaintext | |
string | $password | |
bool | $raw_binary |
Ex |
Références $password, et KeyOrPassword\createFromPassword().
Référencé par KeyProtectedByPassword\changePassword(), et KeyProtectedByPassword\createRandomPasswordProtectedKey().
|
staticprotected |
Verifies an HMAC without leaking information through side-channels.
string | $expected_hmac | |
string | $message | |
string | $key |
Ex |
Références $key, $message, Core\HASH_FUNCTION_NAME, et Core\hashEquals().