I needed some simple string encryption, so I wrote the following code (with a great deal of \"inspiration\" from here):
// create and initialize a crypto
I had a similar problem, the issue in decrypt method was initializing an empty memory stream. when it worked when I initialized it with the cipher text byte array like this:
MemoryStream ms = new MemoryStream(cipherText)