Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct (string $iv, string $method) | |
decrypt ($data, Key $key) | |
encrypt ($data, Key $key) | |
generateKey (array $options=[]) | |
Fonctions membres publiques statiques | |
static | isSupported () |
Attributs privés | |
$iv | |
$method | |
Joomla cipher for encryption, decryption and key generation via the openssl extension.
__construct | ( | string | $iv, |
string | $method | ||
) |
Instantiate the cipher.
string | $iv | The initialisation vector to use |
string | $method | The encryption method to use |
Références OpenSSL\$iv, OpenSSL\$method, et method.
decrypt | ( | $data, | |
Key | $key | ||
) |
Method to decrypt a data string.
string | $data | The encrypted string to decrypt. |
Key | $key | The key object to use for decryption. |
DecryptionException | if the data cannot be decrypted |
InvalidKeyTypeException | if the key is not valid for the cipher |
Implémente CipherInterface.
Références $data, OpenSSL\$iv, $key, Key\getPrivate(), et method.
encrypt | ( | $data, | |
Key | $key | ||
) |
Method to encrypt a data string.
string | $data | The data string to encrypt. |
Key | $key | The key object to use for encryption. |
EncryptionException | if the data cannot be encrypted |
InvalidKeyTypeException | if the key is not valid for the cipher |
Implémente CipherInterface.
Références $data, OpenSSL\$iv, $key, Key\getPrivate(), et method.
generateKey | ( | array | $options = [] | ) |
Method to generate a new encryption key object.
array | $options | Key generation options. |
InvalidKeyException | if the key cannot be generated |
Implémente CipherInterface.
Références $options.
|
static |
Check if the cipher is supported in this environment.
Implémente CipherInterface.
|
private |
Référencé par OpenSSL\__construct(), OpenSSL\decrypt(), et OpenSSL\encrypt().
|
private |
Référencé par OpenSSL\__construct().