Creating an Encrypted Password

You can encrypt the password by using the password_util tool located in amsgce-runtime-<version>\daautil\bin. Encryption enables you to hide usernames and passwords from other users.

    Procedure
  1. Navigate to the amsgce-runtime-<version>\daautil\bin folder.
  2. Run the following command:

    For Linux Platform:

    ./password_util encrypt 'yourpassword'

    For Windows Platform:

    password_util.exe encrypt 'yourpassword'

    Example (For Linux Platform):

    ./password_util encrypt 'abc'

    Example (For Windows Platform):

    password_util.exe encrypt 'abc'

    For more information about the options that you can specify when running the command, see password_util Command Reference.

    Sample CLI Output:

    C:\amsg\amsgce-runtime-1.0.1\daautil\bin>password_util.exe encrypt 'tibco'
    2021/08/17 14:28:54 log file location : C:\amsg\amsgce-runtime-1.0.1\daautil\bin\logs/password_util_2021-08-17-14-28-54.log
    2021/08/17 14:28:58 password_util output:
    2021/08/17 14:28:58 2021/08/17 14:28:56 [main] [INFO ] com.tibco.amxce.passwordutil - encrypting string tibco
    2021/08/17 14:28:58 [main] [INFO ] com.tibco.security.impl.np.SecurityVendor - Initializing JSSE's crypto provider class com.sun.net.ssl.internal.ssl.Provider in default mode
    2021/08/17 14:28:58 [main] [INFO ] com.tibco.amxce.passwordutil - encrypted String: #!2ToHpLfoWPRVIr1yxcu2pAQ3meaDvJ3H

    password_util Command Reference

    Actions

    Action Description
    encrypt

    Encrypts the input value.

    isencrypted Checks if the given input value is encrypted.

    Options

    Option Description
    -b / --base_dir

    The base directory in which the password_util files are located. If not specified, the current directory is considered as the base location directory.

    Default: amsgce-runtime-<version>/daautil/bin

    -h / --help Prints help for the command
    --config <Configuration file>

    You can specify the arguments to be passed to the command in the amsgce-runtime-<version>/daautil/bin/password_util.yaml file or you can specify the arguments when running the command. Arguments specified when running the command have precedence over the arguments specified in the YAML file.

    Default: amsgce-runtime-<version>/daautil/bin/password_util.yaml