How to Create MD5 Encrypted Password for Tomcat Users

By | August 12, 2016

While setting up TIBCO HAWK web console, authentication type can be chosen as FILE, DATABASE or LDAP to authenticate the users from a file, database or from Active directory respectively.


For FILE authentication type; users are saved in hawk_users.xml file while in case of DATABASE authentication type; users credentials are stored in a database table HAWK_USERS.

In both cases, by default user password is saved in Plain Text which is not secure. To store the passwords in an encrypted manner, we can opt for a digest like MD5.

How to Encrypt Password in Tomcat with MD5

You can use digest.bat or digest.sh (for windows and Linux respectively) which is available in the path %TIBCO_HOME%/hawk/<VERSION>/webconsole/tomcat/bin location.

Below is the command to digest a password:

digest.bat -a MD5 tutorialspedia

tibco tomcat md5 encryption

 

-a specifies the encryption algorithm to be used. tutorialspedia is the password string to be encrypted.

This encrypted MD5 password can be saved in hawk_users.xml file or database table for a user to login to Hawk Web Console.

Ajmal Abbasi

Ajmal Hussain Abbasi is a TIBCO Consultant By Profession with more than 6 years experience in TIBCO products. He has extensive practical knowledge of TIBCO Business Works, TIBCO Spotfire, TIBCO BE, EMS and TIBCO ActiveSpaces. He has worked on a number of highly critical integration projects in Telecom sector by using his skills in Tibco Designer, Adapters, TIBCO EMS, RV, Administrator, TIBCO BE, TIBCO ActiveSpaces etc. Ajmal Abbasi is also experienced in developing solutions using Oracle PL/Sql, Linux and Java. You can contact Ajmal Abbasi for Consultancy, Technical Assistance and Technical Discussions.

More Posts - Website - Facebook - LinkedIn

Leave a Reply

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