Encrypting Password Values

When entering passwords on command line or in a file, it is always a good idea to encrypt their values for security reasons. TIBCO Cloud Integration - Flogo (PAYG) has a utility that you can use to encrypt passwords.

Prerequisites

You must have the password to be encrypted handy in order to run the utility.
To encrypt a password, run the following:

Procedure

  1. Open a command prompt or a terminal.
  2. Navigate to the location of the app binary and run the following command:
    ./<app_binary> --encryptsecret <value_to_be_encrypted>
    The command outputs the encrypted value which you can use when setting the password in a file or setting the password from the command line or using environment variables,. For example, export PASSWORD="SECRET:t90Ixj+QYCMFbqCEo/UnELlPPhrClMzv".

    Note that the password value is enclosed in double quotes. Since special characters (such as `! | &lt; &gt; &amp; `) are shell command directives, if such characters appear in the encrypted string, using double quotes around the encrypted value will direct your system to treat them as literal characters. Also, the encrypted value must be preceded by SECRET:

    Keep in mind that when you run the env command to list the environment variables, the command does not output the environment variable for the password.

Related reference