QPR ProcessAnalyzer Script Encryption

From QPR ProcessAnalyzer Wiki
Jump to: navigation, search

Scripts in QPR ProcessAnalyzer can be encrypted to prevent users from seeing the script code. The encryption is done using the QPR ProcessAnalyzer ScriptEncrypter tool. You can ask the tool by contacting QPR Customer Care.

Using QPR ProcessAnalyzer ScriptEncrypter

QPR ProcessAnalyzer ScriptEncrypter contains the following files:

  • Qpr.ProcessAnalyzer.ScriptEncrypter.exe
  • Qpr.ProcessAnalyzer.ScriptEncrypter.exe.config
  • Qpr.Utils.dll

To encrypt scripts, follow these steps:

  1. Store all the above listed three files in some location on your computer.
  2. Open the Command Prompt.
  3. Copy the source script(s) you want to encrypt to a folder. The scripts need to be in XML format (with the extension .pascript).
  4. In Command Prompt, go to the directory where you stored the ScriptEncrypter files. To encrypt your script with default folder settings, run Qpr.ProcessAnalyzer.ScriptEncrypter.exe. If you had created separate input and/or output folders, run Qpr.ProcessAnalyzer.ScriptEncrypter.exe <#inputfolder> <#outputfolder>. For example, by running Qpr.ProcessAnalyzer.ScriptEncrypter.exe .\sourcescripts .\encryptedscripts the tool will use all the valid .pascript files in the sourcescripts subfolder as a source, encrypt them and write them to encryptedscripts folder as encrypted .pascript text files.

By default, the current working directory is used as the input folder and for the output folder. The tool will automatically create a subfolder called encrypted to the current working directory.

Running Encrypted Scripts

You can run encrypted scripts like normal (unencrypted) scripts by pasting the encrypted script to the script code field in the Manage Scripts dialog. If you have received an encrypted script in a text file, you can copy the text to clipboard and in Manage Scripts, select Create from Clipboard to add it to your selected context and project. Note that you can use any text editor (e.g. Notepad) to open .pascript files, both encrypted and unencrypted.