TripleDesCipher
Extends McryptCipherJCrypt cipher for Triple DES encryption, decryption and key generation.
| since |
3.0.0 |
|---|---|
| deprecated |
4.0 Without replacement use SodiumCipher |
| package |
Joomla CMS |
Methods
__construct
Constructor.
__construct() : mixed
| since |
3.0.0 |
|---|---|
| throws |
|
Response
mixed
decrypt
Method to decrypt a data string.
decrypt(string data, \Joomla\CMS\Crypt\Key key) : string
| since |
3.0.0 |
|---|---|
| throws |
|
Arguments
- data
stringThe encrypted string to decrypt.- key
\Joomla\CMS\Crypt\KeyThe key object to use for decryption.
Response
stringThe decrypted data string.
encrypt
Method to encrypt a data string.
encrypt(string data, \Joomla\CMS\Crypt\Key key) : string
| since |
3.0.0 |
|---|---|
| throws |
|
Arguments
- data
stringThe data string to encrypt.- key
\Joomla\CMS\Crypt\KeyThe key object to use for encryption.
Response
stringThe encrypted data string.
generateKey
Method to generate a new encryption key object.
generateKey(array options = array()) : \Joomla\CMS\Crypt\Key
| since |
3.0.0 |
|---|---|
| throws |
|
Arguments
- options
arrayKey generation options.
Response
\Joomla\CMS\Crypt\Key
pbkdf2
PBKDF2 Implementation for deriving keys.
pbkdf2(string p, string s, int kl, int c = 10000, string a = 'sha256') : string
| link | |
|---|---|
| since |
3.0.0 |
Arguments
- p
stringPassword- s
stringSalt- kl
intKey length- c
intIteration count- a
stringHash algorithm
Response
stringThe derived key.
Properties
type
The mcrypt cipher constant.
| link | |
|---|---|
| since |
3.0.0 |
Type(s)
int
mode
The mcrypt block cipher mode.
| link | |
|---|---|
| since |
3.0.0 |
Type(s)
int
keyType
The Crypt key type for validation.
| since |
3.0.0 |
|---|
Type(s)
string