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. Flogo Enterprise has a utility that you can use to encrypt passwords.
- Procedure
- Open a command prompt or a terminal.
- 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 `! | <, >, &, `) are shell command directives, if such characters appear in the encrypted string, using double quotes around the encrypted value directs 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
envcommand to list the environment variables, the command does not output the environment variable for the password.