public void TestCryptedtrings() { var b = SomeBytes(20); var k = CryptUtil.CreateEncryptedString("mykey", b); var parsed = CryptUtil.ParseEncryptedString(k); Check.That(parsed?.Bytes).Equals(b); Check.That(parsed?.KeyName == "mykey"); }
public void TestCryptedtrings() { var b = SomeBytes(20); var k = CryptUtil.CreateEncryptedString("mykey", b); var parsed = CryptUtil.ParseEncryptedString(k); Check.That(parsed?.Bytes).Equals(b); Check.That(parsed?.KeyName == "mykey"); }