Encrypting Passwords

Use the obfuscate utility installed with TIBCO Runtime Agent™ to encrypt passwords with an encryption key in properties files.

The obfuscate utility rewrites a Java property file by encrypting property values that start with a #!! or #! prefix. The utility is located in the TIBCO_HOME/adapter/adr3/version_number/bin directory. For more information about how to use the obfuscate utility, see “Obfuscate Utility” in TIBCO Runtime Agent Installation.

Procedure

  1. Define a module property for the password to be obfuscated.
    Note: You must not specify a value for the module property.
  2. Define the password as a client variable in the following format in the adapter TRA file:
    tibco.clientVar.PasswordGLName=#!!passwordValue
  3. On the command line, enter the following command to obfuscate it by using the obfuscate utility:
    TIBCO_HOME/adapter/adr3/version_number/bin/obfuscate TRAFileName

Result

The confidential password is obfuscated.