Example #1
0
        public void BinaryBlob()
        {
            var plainblob = UTF8Encoding.UTF8.GetBytes(Plaintext);

            var cipherblob  = Rijndael.EncryptBinary(plainblob, Password, KeySize.Aes128);
            var plainresult = Rijndael.DecryptBinary(cipherblob, Password, KeySize.Aes128);

            Assert.Equal(plainblob, plainresult);
        }