Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved

Chapter 3 Installed Components : Obfuscate Utility

Obfuscate Utility
The obfuscate utility allows you to encrypt confidential information such as passwords in property files using an encryption key. The obfuscate utility rewrites a Java property file by encrypting property values that start with a #!! or #! prefix. It supports three types of encryption keys. They are as follows:
A custom encryption key. The encryption key is derived from a password provided by you. To use it, add the prefix #!! to the data you want to encrypt and use -password or -passwordFile command line parameters as appropriate. The password can contain any keyboard characters and has no length limit. If encrypting sensitive date in the deployment configuration file using your custom password, you need to provide the same password when using -passwordFile (See , Working with Passwords in TIBCO Runtime Agent Scripting Deployment User’s Guide).
A machine key. To use a machine key, add the prefix #!! to the data you want to encrypt and do not use -password or -passwordFile.It can be used to encrypt a custom key in a properties file. Then you can use -passwordFile to encrypt data using the encrypted key in the properties file. If using a machine key, the data cannot be decrypted on another machine.
The obfuscate utility supports the following flags:
-password (to prompt you to type in a password)
-passwordFile (to read an encrypted password from a given file)
Example
To use -password, follow these steps:
1.
Repo.serverCredential = #!!mysecret
2.
TIBCO_HOME/tra/version/bin/obfuscate.exe -password property_file_name
3.
Please type in encryption password* ****
To use -passwordFile, you need to specify the path to the file that contains an encrypted password. That password is encrypted by a machine key. To do this, follow these steps:
1.
a.
Only.one.key = #!!passwords-can_be-long-and-have-signs()@#$%^-etc.123
b.
TIBCO_HOME/tra/version/bin/obfuscate.exe Encrypted_password_property_file_name
2.
Use -passwordFile to encrypt the data using the encrypted password in the property file from step 1.
a.
Repo.serverCredential = #!!mysecret
b.
TIBCO_HOME/tra/version/bin/obfuscate.exe property_file_name -passwordFile Encrypted_password_property_file_name

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved