This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

MFiles.Crypto - error when Decrypt

Hi,

trying to use MFiles.Crypto and i run into some erros with decrypt. Maybe i do something wrong, but...

for encrypt i use:

string pInput = "Message to crypt."
byte[] bytes = MFiles.Crypto.CryptoAES.EncryptString(pInput, "abc");

got something back and it looks like, all ok.

I grabbed that crypted string and try to decrypt it like this:

string pInputEx = "..saved crypted string..."
string pOutput = MFiles.Crypto.CryptoAES.DecryptString(pInputEx, "abc");

And i got error

System.OverflowException: Array dimensions exceeded supported range.

Any "kick" / help appreciated

Marwin