You can run an encrypted macro just as you would any other macro; place the encrypted macro within the macro search path. If you would prefer to run the encrypted macro without having the encryption key resident in the macro file, you can define the key as a "global encryption key" within Mechanical APDL. To do this you must first replace the encryption key argument in the /DECRYPT command with the parameter PASSWORD. Thus, the first line of the encrypted macro becomes:
/DECRYPT,PASSWORD
Before executing the macro within Mechanical APDL, issue the following command through the Mechanical APDL Input command line:
/DECRYPT,PASSWORD,Encryption_Key
Where Encryption_Key is the encryption key
used to encrypt the file. You can now execute the encrypted password. To delete the
current global encryption key, issue the following Mechanical APDL command:
/DECRYPT,PASSWORD,OFF