Library methods long encrypt_files (unsigned long n, char** pInList, char** pOutList, char* encryption_key, char* err_buffer, unsigned long err_buffer_size) Parameter Return values CNC Program encryption 14 Version: 1.32 TF5200 | TwinCAT 3 CNC Name Type Meaning n unsigned long Number of input files pInList char** List of input file names pOutList char** List of output file names 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 -6 The list of output file names is not specified. -5 The list of input file names is not specified. -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.