![]() |
Joomla CMS
3.9.25 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.9.25 et du framework Joomla Platform intégré
|
Graphe d'héritage de SodiumCipher:Fonctions membres publiques | |
| decrypt ($data, Key $key) | |
| encrypt ($data, Key $key) | |
| generateKey (array $options=array()) | |
| setNonce ($nonce) | |
Attributs privés | |
| $nonce | |
JCrypt cipher for sodium algorithm encryption, decryption and key generation.
| 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. |
Implémente CipherInterface.
Références $data, $key, ParagonIE_Sodium_Compat\crypto_box_keypair_from_secretkey_and_publickey(), et ParagonIE_Sodium_Compat\crypto_box_open().
| 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. |
Implémente CipherInterface.
Références $data, $key, ParagonIE_Sodium_Compat\crypto_box(), et ParagonIE_Sodium_Compat\crypto_box_keypair_from_secretkey_and_publickey().
| generateKey | ( | array | $options = array() | ) |
Method to generate a new encryption key object.
| array | $options | Key generation options. |
| RuntimeException |
Implémente CipherInterface.
Références $key, ParagonIE_Sodium_Compat\crypto_box_keypair(), ParagonIE_Sodium_Compat\crypto_box_publickey(), et ParagonIE_Sodium_Compat\crypto_box_secretkey().
| setNonce | ( | $nonce | ) |
Set the nonce to use for encrypting/decrypting messages
| string | $nonce | The message nonce |
|
private |