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:----PTMp1vGqF75arJOMDAeZWQ1TGk1te3nBPhvyBUImsuBIBSSpD6sELolf+rQXrRUkdSBzIK34W/GGwamyjjHgYvRrOWoMqHkCnrmX0s6aIJwAFgANRs+0g0JCNtGcqO7wFFYbWpZrU0H639vYPju9arlCTzsyVFs0ZH+HIE0ooqzSwBcYpwxEe0XICW1JtdUjetd1EAYpXERKNa4VEdG7iYqATF/C8Wh8x9+Ai+eOKzTnJR1tIhnzwPOGK7q0M/bRDIoaHBmNdHYild/pJ9mmszP5jZ+UILPAJds7QiAwnE00jW4Lm1k/bgBc3QNVR2U/Ro+ayHbSFO0S3vmphiW59ZBsRGUcQpb0MIj4yDeUYP0jWBcN37GfBLPmxQ2A5BWbgJGVWwjd7jycrvxf1iGTUzYBEj9DoNShmvZ0INiJj9gcRjyGcDo+eu2LuAEXmuHbM6OaNg2T7RMi5WW6X1bhhZ3navBQCnFG8wmyB/y01BuGTGxmBu0+lQ5HklNpoXpwMhQa0xak6BsTj7IXJbeGBVuvN89YsdPPdklmmzc9EgpaQltzlr1rLLUaVKU4okl6b6rloCfw/PX8Z50H0t+zOckM24kx4BcN8DVuy6M9HciW5kBpd0YcEWYNEd5juPm3EROIgW5PkSyhJOlUPi3DV+2oYSX69oQZUHNdH1jtY+w=----ATTACHMENT:----MTIyNzczNTQ0ODc1MjI5MiA2NjU0MTEyODA1MDQ5Mjk0IDI1NzMyMTY2NjEwMzUzODk=