public function LockrAes256CbcSha256KeyWrapperTest::testUpgradedData in Lockr 7.3
File
- vendor/
lockr/ lockr/ tests/ KeyWrapper/ LockrAes256CbcSha256KeyWrapperTest.php, line 29
Class
Namespace
Lockr\Tests\KeyWrapperCode
public function testUpgradedData() {
$text = 'abcd';
$data = RawKeyWrapper::encrypt($text);
$plaintext = KeyWrapper::decrypt($data['ciphertext'], $data['encoded']);
$this
->assertSame($text, $plaintext);
}