CryptoCipher
Implements \Joomla\CMS\Crypt\CipherInterfaceCrypt cipher for encryption, decryption and key generation via the php-encryption library.
deprecated
since |
3.5 |
---|---|
deprecated |
5.0 Without replacement use SodiumCipher |
Methods
decrypt
Method to decrypt a data string.
decrypt(string $data, \Joomla\CMS\Crypt\Key $key) : string
since |
3.5 |
---|---|
throws |
|
Arguments
- $data
string
The encrypted string to decrypt.- $key
\Joomla\CMS\Crypt\Key
The key object to use for decryption.
Response
string
The decrypted data string.
encrypt
Method to encrypt a data string.
encrypt(string $data, \Joomla\CMS\Crypt\Key $key) : string
since |
3.5 |
---|---|
throws |
|
Arguments
- $data
string
The data string to encrypt.- $key
\Joomla\CMS\Crypt\Key
The key object to use for encryption.
Response
string
The encrypted data string.
generateKey
Method to generate a new encryption key object.
generateKey(array $options = array()) : \Joomla\CMS\Crypt\Key
since |
3.5 |
---|---|
throws |
|
Arguments
- $options
array
Key generation options.