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 CryptoCipher
+ Graphe d'héritage de CryptoCipher:

Fonctions membres publiques

 decrypt ($data, Key $key)
 
 encrypt ($data, Key $key)
 
 generateKey (array $options=array())
 

Description détaillée

Crypt cipher for encryption, decryption and key generation via the php-encryption library.

Depuis
3.5
Obsolète:
5.0 Without replacement use SodiumCipher

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.5
Exceptions

Implémente CipherInterface.

Références $data, et $key.

◆ 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.5
Exceptions

Implémente CipherInterface.

Références $data, et $key.

◆ generateKey()

generateKey ( array  $options = array())

Method to generate a new encryption key object.

Paramètres
array$optionsKey generation options.
Renvoie
Key
Depuis
3.5
Exceptions

Implémente CipherInterface.

Références $key, et Crypto\CreateNewRandomKey().


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