beckhoff TF5200 | TwinCAT 3 CNC — 4.2 Encrypting multiple files

Library methods 4 Library methods isg-encrypt-x*.dll This auxiliary DLL includes the methods for encrypting NC programs. encrypt_file() get_version() The auxiliary DLL is available in both a 64-bit version (isg-encrypt-x64.dll) and a 32-bit version (isg-encrypt- x86.dll). The library is designed for the European/Western character set. If different character sets are used, it may result in unforeseen side effects. NOTICE 4.1 Encryption The specified input file is fully encrypted with the specified key and is saved as the output file.

long encrypt_file (char *pIn, char *pOut, char* encryption_key, char* err_buffer, unsigned long err_buffer_size) Parameter Return values 4.2 Encrypting multiple files Multiple input files are completely encrypted with the specified key and are saved as output files. TF5200 | TwinCAT 3 CNC CNC Program encryption 13 Version: 1.32 Name Type Meaning pIn char* Name for input file pOut char* Name for output encryption key _ char* Key err buffer _ char* Buffer for error messages: "Key is longer than 56 characters" "No key defined" "Could not open input file" "Could not open output file" If a blank string is entered, no error occurred. A maximum of 256 characters can be transmitted.

err buffer size _ _ unsigned long Size of the buffer err buffer _ Value Meaning -4 Output file cannot be opened -3 Input file cannot be opened -2 Maximum key length exceeded. -1 Key missing. 0 Encryption of x characters successful.