示例#1
0
        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");
        }