How to Encrypt Password in TIBCO BW6 With Special Characters

By | November 18, 2021

TIBCO BusinessWorks 6.x provides obfuscate utility with its bwadmin tool which can be used to obfuscate or encrypt passwords to use them securely in the configuration files. E.g. when you are setting up your BW Agent and adding configurations in bwagent.ini file with DBEMS as technology type, you will need to provide password for Database and EMS which you will prefer to add encrypted instead of plain text.

How to Obfuscate Password Using bwadmin utility in TIBCO BW 6 Using Obfuscate Command

In order to encrypt or obfuscate any password in TIBCO BusinessWorks 6.x, you can use bwadmin CLI and run below command.

bwadmin obfuscate my-pass

The above command will obfuscate the password (my-pass) and you can use obfuscated/ecnrypted password in your configuration files.

How to Encrypt Password with Special Characters in TIBCO BW6 Using Obfuscate Command

It has been observed that if you have some special characters (e.g. $) in the password, obfuscate command with bwadmin CLI doesn’t create obfuscated password correctly using the above method. In such cases, you need to use single quote for your password otherwise you won’t get correct obfuscated password.

For example, if you want to encrypt the password Test$123 which contains $, you will have to use command as below:

bwadmin obfuscate ‘Test$123’

Once you have encrypted the password, you can use it in your configuration file (bwagent.ini) and it should work fine. If you want to decrypt or de-obfuscate the password, you can put your encrypted password in the global variable and then follow another tutorial explaining how to decrypt password from Global Variable in TIBCO Designer.

Note: I tried to obfuscate/encrypt password using bwobfuscator.exe and interestingly, this tool can encrypt or obfuscate password with special characters like the one above without any issues even without adding any quotes.

Ajmal Abbasi

Ajmal Hussain Abbasi is Integration Consultant By Profession with 13+ years experience in Integration domain mainly with TIBCO products. He has extensive practical knowledge of TIBCO Business Works, TIBCO Cloud, TIBCO Flogo, TIBCO Mashery, TIBCO Spotfire, EMS and TIBCO ActiveSpaces. He has worked on a number of highly critical integration projects in various sectors by using his skills in TIBCO Flogo, TIBCO API Management (Mashery), TCI, Tibco Designer, TIBCO Business Studio, Adapters, TIBCO EMS, RV, Administrator, TIBCO BE, TIBCO ActiveSpaces etc. Ajmal Abbasi has experience with MuleSoft ESB as well. Ajmal Abbasi is also experienced in the area of API Management particularly with WSO2 API management platforms. Ajmal Abbasi is also experienced in developing solutions using Core Java and J2EE Technologies. You can contact Ajmal Abbasi for Consultancy, Technical Assistance and Technical Discussions.

More Posts - Website - Facebook - LinkedIn - YouTube

2 thoughts on “How to Encrypt Password in TIBCO BW6 With Special Characters

  1. Vinay

    Hi Ajmal,

    Could you please show us “How to Encrypt Password in TIBCO BW 5.x” with sample example.

    Thanks,
    Vinay

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *