Password Encryption and Decryption

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

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.

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 REST service request.

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

Usage is as follows:
  • For encryption:
    import com.tibco.mdm.infrastructure.encryption.EncrypterDecryptorUtil;
    ...
    ...
    EncrypterDecryptorUtil cipher = EncrypterDecryptorUtil.getCipher();
    cipher.encrypt(<pwdStringInPlainText>);
    
  • For decryption:
    import com.tibco.mdm.infrastructure.encryption.EncrypterDecryptorUtil;
    ...
    ...
    EncrypterDecryptorUtil cipher = EncrypterDecryptorUtil.getCipher();
    cipger.decrypt(<EncryptedPwdValue>);