コード例 #1
0
        public void TestEncryptionAndDecryption()
        {
            var key       = AesEncryptionProvider.InitializeEncryptionKey();
            var encrypted = AesEncryptionProvider.Encrypt(key, Data);
            var decrypted = AesEncryptionProvider.Decrypt(key, encrypted);

            Assert.AreEqual(Data, decrypted);
        }
コード例 #2
0
        public void TestEncryption()
        {
            var key = AesEncryptionProvider.InitializeEncryptionKey();

            AesEncryptionProvider.Encrypt(key, Data);
        }
コード例 #3
0
 public void TestRandomKey()
 {
     AesEncryptionProvider.InitializeEncryptionKey();
 }