7 declare(strict_types=1);
56 $cipher = MCRYPT_BLOWFISH,
57 $mode = MCRYPT_MODE_ECB,
67 $allowedCharacters =
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
70 $initVector .= $allowedCharacters[rand(0, strlen($allowedCharacters) - 1)];
73 @mcrypt_generic_deinit(
$handle);
78 $this->mcrypt = new \Magento\Framework\Encryption\Adapter\Mcrypt(
93 return $this->mcrypt->getCipher();
103 return $this->mcrypt->getMode();
113 return $this->mcrypt->getInitVector();
124 if (strlen(
$data) == 0) {
128 return @mcrypt_generic($this->mcrypt->getHandle(),
$data);
139 return $this->mcrypt->decrypt(
$data);
__construct( $key, $cipher=MCRYPT_BLOWFISH, $mode=MCRYPT_MODE_ECB, $initVector=false)
if($exist=($block->getProductCollection() && $block->getProductCollection() ->getSize())) $mode