Creating Enrypted Passwords

Saving passwords in encrypted format is recommended. Use the omxprops to do this action.

To encrypt a password:

Use the following command:

# java -jar /opt/gls/clarity/tools/propertytool/omxprops-ConfigTool.jar encryptPassword <password>

This command returns a text string resembling the following example:

RqHL5XpY0NStVRjd+BngRQ==  

To set an encrypted password:

Set the password by enclosing the text string in the ENC() wrapper.

Consider the following examples:

  • When setting an encrypted password in a configuration file:\

    rabbitmq.password=ENC(RqHL5XpY0NStVRjd+BngRQ==)
  • When using the property tool to set an encrypted password:\

    # java -jar /opt/gls/clarity/tools/propertytool/omxprops-ConfigTool.jar set -y ftp.password 'ENC(RqHL5XpY0NStVRjd+BngRQ==)'
     
  • Using ENC() is not needed when setting the password in Automation Worker:\

    informaticsClientTarget.sftpPassword=RqHL5XpY0NStVRjd+BngRQ==

Last updated