TradeMUX SDK Documentation  1.0
TradeMUX SDK Documentation
int CryptEncode ( int  method,
char[]  data,
char[]  key,
out char[]  result 
)

Transforms the data from array with the specified method.

Parameters
methodData transformation method. Can be one of the following values:
CRYPT_BASE64BASE64
CRYPT_AES128AES encryption with 128 bit key (16 bytes)
CRYPT_AES256AES encryption with 256 bit key (32 bytes)
CRYPT_DES DESEncryption with 56 bit key (7 bytes)
CRYPT_HASH_SHA1SHA1 HASH calculation
CRYPT_HASH_SHA256SHA256 HASH calculation
CRYPT_HASH_MD5MD5 HASH calculation
CRYPT_ARCH_ZIPZIP archives
dataSource array
keyKey array
resultDestination array
Returns
Amount of bytes in the destination array or 0 in case of error. To obtain information about the error call the GetLastError() function.