4.7. Encrypting a Script

The DataHub archive contains a script called EncryptScript.g that makes an encrypted copy of any Gamma script. You can encrypt your scripts as follows:

  1. Run the EncryptScript.g script. Here's how.
  2. Right-click on the DataHub icon in the system tray to open the DataHub menu. You should see a new menu entry: Script Encryption.
    There are two options for encrypting a file. The Encrypt File option uses 8-bit characters, which produces a smaller, faster loading file than an ASCII file, but it may not transfer properly through some mail or FTP servers. If that is an issue, you can use Encrypt File (ASCII).
  3. Choose either Encrypt File or Encrypt File (ASCII). This will open a file selection dialog.
  4. Select the Gamma (.g) file that you want to encrypt. If the encryption succeeds, you will get a success message. The encrypted script will have the same name as the original script, except with a .gmc extension.
  5. You can add the encrypted script to your list of scripts now, and run it. Here's how. The encrypted script should behave exactly the same as the .g file, but will be difficult for a user to examine.