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

Fonctions membres publiques

 __construct ()
 
 decrypt ($data, Key $key)
 
 encrypt ($data, Key $key)
 
 generateKey (array $options=array())
 
 pbkdf2 ($p, $s, $kl, $c=10000, $a='sha256')
 

Attributs protégés

 $type
 
 $mode
 
 $keyType
 

Description détaillée

Crypt cipher for mcrypt algorithm encryption, decryption and key generation.

Depuis
3.0.0
Obsolète:
4.0 Without replacement use SodiumCipher

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( )

Constructor.

Depuis
3.0.0
Exceptions

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

Implémente CipherInterface.

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

◆ pbkdf2()

pbkdf2 (   $p,
  $s,
  $kl,
  $c = 10000,
  $a = 'sha256' 
)

PBKDF2 Implementation for deriving keys.

Paramètres
string$pPassword
string$sSalt
integer$klKey length
integer$cIteration count
string$aHash algorithm
Renvoie
string The derived key.

http://www.ietf.org/rfc/rfc2898.txt 3.0.0

Références $b, $i, et null.

Documentation des champs

◆ $keyType

$keyType
protected

◆ $mode

$mode
protected

◆ $type

$type
protected

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