The M-Files Community will be updated on Tuesday, April 2, 2024 at 10:00 AM EST / 2:00 PM GMT and the update is expected to last for several hours. The site will be unavailable during this time.

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