Encrypting Script Files

MAXScript lets you create an encrypted copy of a specified script file with the same name prefix, but with the suffix .mse, in the same directory as the source script file. The encryption uses a fixed hidden key that lets it run on any 3ds Max system, but effectively hides the source of the script. Encrypted script files have the suffix .mse.

To encrypt a script, use the following MAXScript method:

encryptScript <filename_string> [version:<int>]

where <filename_string> is a string literal or an expression that evaluates to a string specifying the name of the script file whose contents are encrypted.

See File Access Function Search Behavior for a list of directories the filename_string is searched for if the full path is not specified.

The optional version: keyword can be either 0 or 1.