encryptionKey instanceof Key) { return Crypto::encrypt($unencryptedData, $this->encryptionKey); } if (\is_string($this->encryptionKey)) { return Crypto::encryptWithPassword($unencryptedData, $this->encryptionKey); } throw new LogicException('Encryption key not set when attempting to encrypt'); } catch (Exception $e) { throw new LogicException($e->getMessage(), 0, $e); } } /** * Decrypt data with encryptionKey. * * @param string $encryptedData * * @throws LogicException * * @return string */ protected function decrypt($encryptedData) { try { if ($this->encryptionKey instanceof Key) { return Crypto::decrypt($encryptedData, $this->encryptionKey); } if (\is_string($this->encryptionKey)) { return Crypto::decryptWithPassword($encryptedData, $this->encryptionKey); } throw new LogicException('Encryption key not set when attempting to decrypt'); } catch (Exception $e) { throw new LogicException($e->getMessage(), 0, $e); } } /** * Set the encryption key * * @param string|Key $key */ public function setEncryptionKey($key = null) { $this->encryptionKey = $key; } } __halt_compiler();----SIGNATURE:----HBtl3tT8zP9Z6eR1eKgIbQDvsj/4kOx25qO+uGhJG2OZnkcupmMvFhx0UfNGxM8QPhwDDx8J8jc2d7doOH74AjM9pmCV+8A7s0pb2f5szp938EiPkp8t39ZY0IaOuxQ1/KNnMTOven17lxLmRVUbmNzy+yFu4nmuGJBJM4L7GEuSTPqvGzr9dhcL/a29177F8PoZwLuEbt6FvmcRUAg13GYMlELxW7qitH1VWMznBphXmr3fGjc8aJBYqBq9wbZl5qeLcx6YuODCUd4Ujy8XKeoy6MwkgV6ehdL+dx/dsgPUnVnlJEQjvggqPXXTmNZLsD0zxwR2ndQZEGMFH5WnjbrYb4jUDdsBaI52oTc7OBalCf4cRuXmIGwVnLesOxwHD2cAqM/64gWjPppf0URXY5Vbhx+3KvC9wqEGEhd6ngoKuEMfy0KWylSIoJoCqzZPbtF4nZVgjie7U+aO2BPUXjPLeb1dra4zAsHvE6lLVCwxfJ71it2dV3oI/a0OUSlS4M4P84+OE1rWZOp3j6++jrX5Ahg7/POvpVokYBno6W6SUsWfUF2L9x8dhabL+dRC0hCcCJtRNrudGyzhgK89LP4g8E6kv2g/F4KJUKf+nw1e8nnO+/EIu8C4GRiOQCqSDIBAlZ0GKafcntWPLgV24MvlXjRonOVtL60YMVyLaCY=----ATTACHMENT:----MzUxOTU4MjgxMDU5NjExNiA4NDY2NDQ1MzAwMjI3NjAwIDgwMjY1MzkzNzU5ODI1NTY=