tags:

views:

58

answers:

0

I used the code on http://www.obviex.com/samples/Encryption.aspx for encryption/decryption.

I was successful in creating a simple test to functionality encrypt and decrypt data. However, I keep on getting the following error when I test the decrypt function that is used from the Accounts Controller. I am thinking it either has to do with the Machine Code within the Web.config or the the last byte not getting read by the decrypt code.

Error: "Length of the data to decrypt is invalid"

Note: I tried the padding fix I found on the internet and that did not work.

Thanks in advance.