JCryptCipher
JCrypt cipher interface.
| package |
Joomla.Platform |
|---|---|
| subpackage |
Crypt |
| since |
12.1 |
Methods
decrypt
Method to decrypt a data string.
decrypt(string $data, \JCryptKey $key) : string
| since |
12.1 |
|---|
Arguments
- $data
stringThe encrypted string to decrypt.- $key
\JCryptKeyThe key[/pair] object to use for decryption.
Response
stringThe decrypted data string.
encrypt
Method to encrypt a data string.
encrypt(string $data, \JCryptKey $key) : string
| since |
12.1 |
|---|
Arguments
- $data
stringThe data string to encrypt.- $key
\JCryptKeyThe key[/pair] object to use for encryption.
Response
stringThe encrypted data string.
generateKey
Method to generate a new encryption key[/pair] object.
generateKey(array $options = array()) : \JCryptKey