asg-password-hasher Tool

Generates hash passwords.

TIBCO API Exchange Gateway provides a command-line asg-password-hasher.exe utility to generate hash passwords, which is located in the ASG_HOME/bin directory.

Input Parameters

The asg-password-hasher.exe utility prompts you to specify the following parameters:

  • HashAlgorithm
    The HashAlgorithm parameter is configured as hashAlgorithm attribute in the XML file. The possible values are as follows:
    SHA1
    SHA-256
    SHA-384
    SHA-512
    PBKDF2WithHmacSHA1
    PBKDF2WithHmacSHA384
    PBKDF2WithHmacSHA256
    PBKDF2WithHmacSHA512
    

    If you do not specify any value, the default value PBKDF2WithHmacSHA256 is accepted.

  • Iteration count

    The Iteration count parameter specifies the repetitionCount attribute in the XML file. If you do not specify any value, the default value 1000 is accepted.

  • password

    Specifies the password to hash.

Output

The asg-password-hasher.exe utility generates the password with the salt and hash. The generated hashed password is configured in the XML file.

Sample Output

C:\tibco\asg\2.1\bin>asg-password-hasher.exe ******************************************************** Calculate the hash for a given password and random salt. ******************************************************** HashAlgorithm (PBKDF2WithHmacSHA256): [hashAlgorithm=PBKDF2WithHmacSHA256] Iteration count (1000): [repetitionCount=1000] Type in password to hash (<Enter> or Ctrl-C to stop): <Type your password at the prompt> Type in same password again: <Re-type the same password> log4j:WARN No appenders could be found for logger (com.tibco.security.TIBCOSecurity). log4j:WARN Please initialize the log4j system properly. <password salt="XLowtTUDQj6ocTCwpWlPkMwv2wbh/ZBCzBVKBgUglOs=">zfDDla/mcaVUaQj3Vq3kkwnWrA47YPG7kNBfz+8u91g=</password>

Note: Ensure that the values of HashAlgorithm and Iteration count parameters for the asg-password-hasher utility match the hashAlgorithm and repetitionCount attributes specified in the XML file.