t
<!-- Copyright 2004-2008 Double Precision, Inc. See COPYING for -->
<!-- distribution information. -->
Title: authpasswd
Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
Date: 10/28/2020
Manual: Double Precision, Inc.
Source: Double Precision, Inc.
Language: English

"AUTHPASSWD" "1" "10/28/2020" "Double Precision, Inc." "Double Precision, Inc."
-----------------------------------------------------------------
* Define some portability stuff
-----------------------------------------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://bugs.debian.org/507673
http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----------------------------------------------------------------
* set default formatting
-----------------------------------------------------------------
disable hyphenation
disable justification (adjust text to left margin only)
-----------------------------------------------------------------
* MAIN CONTENT STARTS HERE *
-----------------------------------------------------------------
"NAME"
authpasswd - Generate login passwords
"SYNOPSIS"

\w'authpasswd 'u 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\*(Aqs processed by the authentication library\*(Aqs authmysql, authpgsql, authsqlite, 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\*(Aqs used in Linux (note that this is different from the "md5" password hash method).