mirror of
https://github.com/rfc1036/whois.git
synced 2026-01-03 06:15:17 +00:00
46 lines
1.2 KiB
Groff
46 lines
1.2 KiB
Groff
.TH MKPASSWD 1 "11 October 2002" "Marco d'Itri" "Debian GNU/Linux"
|
|
.SH NAME
|
|
mkpasswd \- Overfeatured front end to crypt(3)
|
|
.SH SYNOPSIS
|
|
.B mkpasswd
|
|
.BR PASSWORD
|
|
.BR SALT
|
|
.PP
|
|
.SH DESCRIPTION
|
|
.B mkpasswd
|
|
encrypts the given password with the
|
|
.BR crypt(3)
|
|
libc function using the given salt.
|
|
.SH OPTIONS
|
|
.TP
|
|
.B -S, --salt=STRING
|
|
Use the \fISTRING\fP as salt. It must not contain prefixes such as \fI$1$\fP.
|
|
.TP
|
|
.B -H, --hash=TYPE
|
|
Compute the password using the \fITYPE\fP algorithm.
|
|
If \fITYPE\fP is \fIhelp\fP available algorithms are printed.
|
|
.TP
|
|
.B -P, --password-fd=NUM
|
|
Read the password from file descriptor \fINUM\fP instead of using
|
|
\fIgetpass(3)\fP.
|
|
If the file descriptor is not connected to a tty then no other message
|
|
than the hashed password is printed on stdout.
|
|
.TP
|
|
.B -s, --stdin
|
|
Like \fI--password-fd=0\fP.
|
|
.SH BUGS
|
|
If the \fI--stdin\fP option is used, passwords containing some control
|
|
characters may not be read correctly.
|
|
.TP
|
|
This programs suffers of a bad case of featuritis.
|
|
.SH "SEE ALSO"
|
|
.IR passwd(1),
|
|
.IR passwd(5),
|
|
.IR crypt(3),
|
|
.IR getpass(3)
|
|
.SH AUTHOR
|
|
.B mkpasswd
|
|
and this man page were written by Marco d'Itri <md@linux.it>
|
|
and are licensed under the terms of the GNU GPL.
|
|
|