Hello,
I was wondering if anyone could be kind enough to assist with regarding decryption please? I am using the following functionality to encrypt some data to be passed through to Sage Pay. Basically, I need to be able to decrypt this same data, but after spending
many hours attempting to do this, I cannot seem to figure it out.
Dim bytes As Byte()
Using AES = New RijndaelManaged()
' Set the mode, padding and block size for the key
AES.Padding = PaddingMode.PKCS7
AES.Mode = CipherMode.CBC
AES.KeySize = 128
AES.BlockSize = 128
' Convert key and input text into byte arrays
Dim keyAndIvBytes As [Byte]() = UTF8Encoding.UTF8.GetBytes(strEncryptionPassword)
Dim inputBytes As [Byte]() = UTF8Encoding.UTF8.GetBytes(strPost)
' Create streams and encryptor object
Using memoryStream = New MemoryStream()
Using cryptoStream = New CryptoStream(memoryStream, AES.CreateEncryptor(keyAndIvBytes, keyAndIvByte ...
Go to the complete details ...