SourcePoint AMD Help

Table of Contents

encrypt

Encrypt an include (macro) file. ย The file can be executed normally with the include command, but the contents of the file are not readable.

Syntax

encrypt(input_file, output_file)

Where:

input_file

is an nstring variable or string constant specifying the file to encrypt.

output_file

is an nstring variable or string constant specifying the encrypted file.

Discussion

The encrypt command allows "include" files to be distributed to users without them being able to examine the contents of the file. ย This is sometimes required when proprietary code is used to unlock the debug capabilities of a device.

Example

Command input:

encrypt("c:\unlock.mac", "c:\secret.mac")
include c:\secret.mac ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย // run the encrypted include file