MQL4 Reference Common Functions CryptDecode

MQL4 Help as One File:

CryptDecode

Performs the inverse transformation of the data from array, tranformed by CryptEncode().

int  CryptEncode(
   ENUM_CRYPT_METHOD   method,        // method
   const uchar&        data[],        // source array
   const uchar&        key[],         // key
   uchar&              result[]       // destination array
   );

Parameters

method

[in]  Data transformation method. Can be one of the values of ENUM_CRYPT_METHOD enumeration.

data[]

[in]  Source array.

key[]

[in]  Key array.

result[]

[out]  Destination array.

Returned value

Amount of bytes in the destination array or 0 in case of error. To obtain information about the error call the GetLastError() function.

See also

Array Functions, CryptEncode()