Skip to main content

pwdhash

Use the pwdhash program to hash a password, verify a password or generate a salt. The program accepts arguments and outputs the hashed password on standard output.

Usage

pwdhash.exe <hash|verify|saltgen> <options>

Argument

Description

hash

Generates a password hash

verify

Verifies a password against a hash

saltgen

Generates a salt

-help

Print out help/usage message and exit

-v, --version

Print out version and exit

-encalg <b64—hex>

Encoding algorithm to use

-hash <hash>

Input hash to verify

-hashalg <sha256—sha512—sha1—md5>

Hashing algorithm to use

-password <password>

The password to hash/verify

-prefix <prefix>

output prefix

-salt <salt>

The optional salt to use when verifying

-salt-chars <salt-chars>

Optional character set to use for salt

-saltlen <saltlen>

Optional length of salt to generate

Examples

To use pwdhash to generate a password hash with base64 encoding and a SHA1 hashing algorithm, type:

pwdhash.exe hash -encalg b64 -hashalg sha1 -password ThePassword

To generate a password hash with base64 encoding and a SHA512 hashing algorithm:

echo "ThePassword" | pwdhash.exe hash -encalg b64 -hashalg sha512 -prefix {SHA512}