encryptfile

Encrypts a OML file.

Syntax

encryptfile(infile,outfile)

Inputs

infile
The path and name of the OML file to be encrypted (.oml)
Type: string
Dimension: string
outfile
The destination and name for the encrypted file. The standard extension for OML encrypted files is omc.
Type: string
Dimension: string

Outputs

Examples

Basic encryptfile example:

encryptfile('infile.oml', 'infile.omc')

Comments

Warning: When a script is encrypted, it is not possible to decrypt and retrieve the original .oml script.

Encrypted scripts can be used and executed like regular OML scripts (addpath, run command, and so on.).

If two files with the same name, but different extensions (.oml and .omc), are located in the same folder, the OML interpreter will use the .oml file.