CipherInterface
Joomla Framework Cipher interface.
| since |
1.0 |
|---|---|
| package |
Joomla Framework |
Methods
decrypt
Method to decrypt a data string.
decrypt( data, \Joomla\Crypt\Key key) :
| since |
1.0 |
|---|---|
| throws |
|
Arguments
- data
stringThe encrypted string to decrypt.- key
KeyThe key[/pair] object to use for decryption.
Response
stringThe decrypted data string.
encrypt
Method to encrypt a data string.
encrypt( data, \Joomla\Crypt\Key key) :
| since |
1.0 |
|---|---|
| throws |
|
Arguments
- data
stringThe data string to encrypt.- key
KeyThe key[/pair] object to use for encryption.
Response
stringThe encrypted data string.
generateKey
Method to generate a new encryption key[/pair] object.
generateKey(mixed||string|int options = []) : \Joomla\Crypt\Key
| since |
1.0 |
|---|---|
| throws |
|
Arguments
- options
array<string|int, mixed>Key generation options.
Response
isSupported
Check if the cipher is supported in this environment.
isSupported() :
| since |
2.0.0 |
|---|
Response
bool