Man Page: mkha1(8)

mkha1(8)                  BSD System Manager's Manual                 mkha1(8)

NAME
     mkha1 - a tool for creating Digest-MD5 HA1 hashes

SYNOPSIS
     mkha1 [-u username] [-r realm] [-p password]
     mkha1 -b [-s]

DESCRIPTION
     mkha1 is a tool that creates Digest-MD5 hashes. These are used to perform
     HTTP Digest authentication. Storing these hashes is more secure than
     storing plain text passwords. An HA1 is an MD5 hash of the username,
     realm and password for the given user.

     mkha1 will prompt you for the information it needs to create an HA1 hash
     and then output that hash on the console. You can use this tool in
     scripts to put hashes in your database.

     When used in batch mode (by specifying the -b option) mkha1 reads user
     information from it's input and outputs hashes for each user. Each input
     line should be in the following format:

           user:realm:password

OPTIONS
     The options are as follows:

     -b          Batch mode (described above).

     -p          The password to hash. When not specified on the command line
                 mkha1 will prompt you for it.

     -r          The realm for the HA1 hash. When not specified you'll be
                 prompted.

     -s          When in batch mode output only the plain hashes.

     -u          The username for the HA1 hash. When not specified you'll be
                 prompted for it.

SEE ALSO
     httpauthd(8)

AUTHOR
     Stef Walter <stef@thewalter.net>

httpauth                         May 10, 2006                         httpauth
   [ back | home ]