BraintreeEncryption.Library.Tests.AesTest.AesEncryptionWithKnownIVAndKey C# (CSharp) Метод

AesEncryptionWithKnownIVAndKey() приватный Метод

private AesEncryptionWithKnownIVAndKey ( ) : void
Результат void
        public void AesEncryptionWithKnownIVAndKey()
        {
            var aesKey     = Convert.FromBase64String("iz5DQzn/XpwXvZ7wY3OGQRVBZTFeVMrEIUljWrIr2Pg=");
            var initVector = Convert.FromBase64String("AAAAAQAAAAIAAAADAAAABA==");
            var encrypted  = _aes.EncryptWithIv("test data", aesKey, initVector);
            Assert.AreEqual("AAAAAQAAAAIAAAADAAAABJcSo857BMv+cJtJfpF5Pak=", encrypted);
        }