Previous Topic: DXnewdsa Tool—Create a New DSA

Next Topic: DXrename Tool—Change the Name of a Directory Entry

DXpassword Tool—Hash a Password

The DXpassword tool lets you hash a password. You can then add the hashed password to a knowledge file.

This command has the following format:

dxpassword [-v] [-P algorithm] password
-P algorithm

Hashes the password, where algorithm is one of the following:

SHA

(Default) Hashes the password using the SHA-1 algorithm

SSHA

Hashes the password using the Salted SHA-1 algorithm. This algorithm produces a different hash even for the same clear text password, which is more secure.

SHA512

Hashes the password using the SHA-512 algorithm

CRYPT

Hashes the password using the UNIX crypt method.

MD5

Hashes the password using the Message Digest algorithm

CADIR

Hashes the password using a reversible obfuscation algorithm. Use this option to hash a password before including it in a knowledge file in the dsa-password or ldap-dsa-password configuration items. This protects the password from users with access to the computer running the DSA.

-v

Runs in verbose mode.

password

Specifies the password to be hashed.

Example: Hashing a Password Using MD5

The following command hashes the password qwer123 using the MD5 algorithm:

dxpassword -P MD5 qwer123

The output from this command is:

{MD5}VT6DymlpOzPvc5WMBLejFQ==

Example: Verbose Output from the DXpassword Tool

The following command hashes the password qwer123 using the SHA-1 algorithm, which is the default:

dxpassword -v qwer123

The output from this command is:

'qwer123' encoded is: {SHA}ACldbAY9DZzMbi3DJJGYppRIayY=