Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe SodiumCipher
+ 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
 

Description détaillée

JCrypt cipher for sodium algorithm encryption, decryption and key generation.

Depuis
3.8.0

Documentation des fonctions membres

◆ decrypt()

decrypt (   $data,
Key  $key 
)

Method to decrypt a data string.

Paramètres
string$dataThe encrypted string to decrypt.
Key$keyThe key object to use for decryption.
Renvoie
string The decrypted data string.
Depuis
3.8.0
Exceptions

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()

encrypt (   $data,
Key  $key 
)

Method to encrypt a data string.

Paramètres
string$dataThe data string to encrypt.
Key$keyThe key object to use for encryption.
Renvoie
string The encrypted data string.
Depuis
3.8.0
Exceptions

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()

generateKey ( array  $options = array())

Method to generate a new encryption key object.

Paramètres
array$optionsKey generation options.
Renvoie
Key
Depuis
3.8.0
Exceptions
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()

setNonce (   $nonce)

Set the nonce to use for encrypting/decrypting messages

Paramètres
string$nonceThe message nonce
Renvoie
void
Depuis
3.8.0

Documentation des champs

◆ $nonce

$nonce
private

La documentation de cette classe a été générée à partir du fichier suivant :