Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (string $key, string $cipher=MCRYPT_BLOWFISH, string $mode=MCRYPT_MODE_ECB, string $initVector=null) | |
__destruct () | |
getCipher () | |
getMode () | |
getInitVector () | |
getHandle () | |
encrypt (string $data) | |
decrypt (string $data) | |
Mcrypt adapter for decrypting values using legacy ciphers
Definition at line 14 of file Mcrypt.php.
__construct | ( | string | $key, |
string | $cipher = MCRYPT_BLOWFISH , |
||
string | $mode = MCRYPT_MODE_ECB , |
||
string | $initVector = null |
||
) |
Mcrypt constructor.
string | $key | |
string | $cipher | |
string | $mode | |
string | $initVector |
Definition at line 46 of file Mcrypt.php.
__destruct | ( | ) |
Destructor frees allocated resources
Definition at line 90 of file Mcrypt.php.
decrypt | ( | string | $data | ) |
Decrypt a string
string | $data |
Implements EncryptionAdapterInterface.
Definition at line 160 of file Mcrypt.php.
encrypt | ( | string | $data | ) |
Encrypt a string
string | $data | String to encrypt |
Implements EncryptionAdapterInterface.
Definition at line 145 of file Mcrypt.php.
getCipher | ( | ) |
Retrieve a name of currently used cryptographic algorithm
Definition at line 103 of file Mcrypt.php.
getHandle | ( | ) |
getInitVector | ( | ) |
Retrieve an actual value of initial vector that has been used to initialize a cipher
Definition at line 123 of file Mcrypt.php.
getMode | ( | ) |
Mode in which cryptographic algorithm is running
Definition at line 113 of file Mcrypt.php.