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

Fonctions membres publiques

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

Fonctions membres privées

 _hexToInt ($s, $i)
 
 _hexToIntArray ($hex)
 
 _intToHex ($i)
 

Description détaillée

Crypt cipher for Simple encryption, decryption and key generation.

Depuis
3.0.0
Obsolète:
4.0 Without replacement use SodiumCipher

Documentation des fonctions membres

◆ _hexToInt()

_hexToInt (   $s,
  $i 
)
private

Convert hex to an integer

Paramètres
string$sThe hex string to convert.
integer$iThe offset?
Renvoie
integer
Depuis
1.7.0

Références $i.

◆ _hexToIntArray()

_hexToIntArray (   $hex)
private

Convert hex to an array of integers

Paramètres
string$hexThe hex string to convert to an integer array.
Renvoie
array An array of integers.
Depuis
1.7.0

Références $i.

◆ _intToHex()

_intToHex (   $i)
private

Convert an integer to a hexadecimal string.

Paramètres
integer$iAn integer value to convert to a hex string.
Renvoie
string
Depuis
1.7.0

Références $i.

◆ decrypt()

decrypt (   $data,
Key  $key 
)

Method to decrypt a data string.

Paramètres
string$dataThe encrypted string to decrypt.
Key$keyThe key[/pair] object to use for decryption.
Renvoie
string The decrypted data string.
Depuis
3.0.0
Exceptions

Implémente CipherInterface.

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

◆ encrypt()

encrypt (   $data,
Key  $key 
)

Method to encrypt a data string.

Paramètres
string$dataThe data string to encrypt.
Key$keyThe key[/pair] object to use for encryption.
Renvoie
string The encrypted data string.
Depuis
3.0.0
Exceptions

Implémente CipherInterface.

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

◆ generateKey()

generateKey ( array  $options = array())

Method to generate a new encryption key[/pair] object.

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

Implémente CipherInterface.

Références $key, et Crypt\genRandomBytes().


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