Exemplo n.º 1
0
        public void RoundTripEncryptText64Test()
        {
            ICipherAsync target   = GetCipher();
            var          testText = "test text";

            var cryptoResult = target.EncryptText64(testText);

            Assert.IsNotNull(cryptoResult);
            Assert.IsTrue(cryptoResult.Length > testText.Length * 2);

            target = GetCipher();

            var textResult = target.DecryptText64(cryptoResult);

            Assert.AreEqual(testText, textResult);
        }