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

Parents
  • Hi Marwin,

    The M-Files Cryto DLL is not supported for external use.  Its purpose is internal, to validate VAF application licences and the like.

    My suggestion is that you use the standard .NET BCL cryptography namespaces directly if you need to encrypt or hash anything.

    Regards,

    Craig.

Reply
  • Hi Marwin,

    The M-Files Cryto DLL is not supported for external use.  Its purpose is internal, to validate VAF application licences and the like.

    My suggestion is that you use the standard .NET BCL cryptography namespaces directly if you need to encrypt or hash anything.

    Regards,

    Craig.

Children