Password Encryption and Decryption

The Password input is required across all web services and majorly in Administrator web services. You can encrypt any text password using the passwordEncryptDecryptTool.sh or passwordEncryptDecryptTool.bat tool located in $MQ_HOME/bin.

The scripts accept a text string and return an encrypted string value or accept an already encrypted string value and return a text value. You can generate an encrypted string using the tool and then use it in the web service request.

Encryption and decryption tool is also supported through a Java API so that it can be embedded.

Usage is as follows:

import com.tibco.mdm.infrastructure.encryption.EncrypterDecryptorUtil;
...
...
EncrypterDecryptorUtil cipher = EncrypterDecryptorUtil.getCipher();
cipher.encrypt(<pwdStringInPlainText>);
OR

cipger.decrypt(<EncryptedPwdValue>);

Prerequisite

Ensure that all environment variables used in TIBCO MDM are set properly before executing the script, such as MQ_HOME, MQ_COMMON_DIR, MQ_CONFIG_FILE, NODE_ID, WAS_HOME, JBOSS_HOME, and so on.