function testDecryptAString() { $this->markTestSkipped('Skip encryption test because open SSL salts the data and the result is always different.'); $plain = $this->cryptoManager->decrypt('e96A2TuIWwcexcK8f7Dnk6aPRnIQYDdbggXz6vj/JGq9pR2838ZHOb5blMKYSWKTYOmLyuYZ5Qsci0Wrl858hq07lCkF8B6XIHu7MoGWytUAdVZOM0EsF58x9WAMCpkd+/iTThO5G03O0CXMffLFCWCAY4/IVbKHZwfQg8pXIUE=:ZdjiFGXRxwHViSSIVSa0gsRJgWjYy3O+XLp11soRIu9MN0iXf+X7Rg4vYkPZtNpEPGX4oElOR2J1Pnidqw==', $this->privateKey); $this->assertEquals('{"operations":[["foo",{"bar":"fop"}],["lorem",{"ip":"sum"}]]}', $plain); }
/** * * @param string $encryptedData * @return string */ public function decodeResult($encryptedData) { return $this->cryptoManager->decrypt($encryptedData, $this->privateKey); }