AUTHPASSWD(1)
NAME
authpasswd - Generate login passwords
SYNOPSIS
authpasswd [method]
DESCRIPTION
authpasswd is a helper utility that generates encrypted passwords for
the Courier authentication library. The Courier authentication library
is capable of using several different encryption methods for storing
passwords. authpasswd issues a password prompt. Enter the same
password twice (for verification purposes). authpasswd computes and
prints the encrypted password. The encrypted password can be inserted
verbatim into the appropriate account record that's processed by the
authentication library's authmysql, authpgsql, or authldap module.
method may be set to one of the following literals:
- crypt
- Use the traditional DES-based encrypted password.
- md5
- Compute a base64-encoded MD5 password hash.
- md5raw
- Compute a hexadecimal-encoded MD5 password hash.
- sha1
- Compute a SHA1 password hash.
- ssha
- Compute a salted SHA1 password hash.
- sha256
- Compute a SHA256 password hash.
- If not specified, method defaults to the modified-MD5 password encryption algorithm that's used in Linux (note that this is different from the "md5" password hash method).