man-pages/man1/passwd.1ssl.html
2021-03-31 01:06:50 +01:00

181 lines
4.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of PASSWD</TITLE>
</HEAD><BODY>
<H1>PASSWD</H1>
Section: OpenSSL (1SSL)<BR>Updated: 2021-03-22<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
openssl-passwd, passwd - compute password hashes
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>openssl passwd</B>
[<B>-help</B>]
[<B>-crypt</B>]
[<B>-1</B>]
[<B>-apr1</B>]
[<B>-aixmd5</B>]
[<B>-5</B>]
[<B>-6</B>]
[<B>-salt</B> <I>string</I>]
[<B>-in</B> <I>file</I>]
[<B>-stdin</B>]
[<B>-noverify</B>]
[<B>-quiet</B>]
[<B>-table</B>]
[<B>-rand file...</B>]
[<B>-writerand file</B>]
{<I>password</I>}
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
The <B>passwd</B> command computes the hash of a password typed at
run-time or the hash of each password in a list. The password list is
taken from the named file for option <B>-in file</B>, from stdin for
option <B>-stdin</B>, or from the command line, or from the terminal otherwise.
The Unix standard algorithm <B>crypt</B> and the MD5-based <FONT SIZE="-1">BSD</FONT> password
algorithm <B>1</B>, its Apache variant <B>apr1</B>, and its <FONT SIZE="-1">AIX</FONT> variant are available.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<DL COMPACT>
<DT id="1"><B>-help</B><DD>
Print out a usage message.
<DT id="2"><B>-crypt</B><DD>
Use the <B>crypt</B> algorithm (default).
<DT id="3"><B>-1</B><DD>
Use the <FONT SIZE="-1">MD5</FONT> based <FONT SIZE="-1">BSD</FONT> password algorithm <B>1</B>.
<DT id="4"><B>-apr1</B><DD>
Use the <B>apr1</B> algorithm (Apache variant of the <FONT SIZE="-1">BSD</FONT> algorithm).
<DT id="5"><B>-aixmd5</B><DD>
Use the <B></B><FONT SIZE="-1"><B>AIX MD5</B></FONT><B></B> algorithm (<FONT SIZE="-1">AIX</FONT> variant of the <FONT SIZE="-1">BSD</FONT> algorithm).
<DT id="6"><B>-5</B><DD>
<DT id="7"><B>-6</B><DD>
Use the <B></B><FONT SIZE="-1"><B>SHA256</B></FONT><B></B> / <B></B><FONT SIZE="-1"><B>SHA512</B></FONT><B></B> based algorithms defined by Ulrich Drepper.
See &lt;<A HREF="https://www.akkadia.org/drepper/SHA-crypt.txt">https://www.akkadia.org/drepper/SHA-crypt.txt</A>&gt;.
<DT id="8"><B>-salt</B> <I>string</I><DD>
Use the specified salt.
When reading a password from the terminal, this implies <B>-noverify</B>.
<DT id="9"><B>-in</B> <I>file</I><DD>
Read passwords from <I>file</I>.
<DT id="10"><B>-stdin</B><DD>
Read passwords from <B>stdin</B>.
<DT id="11"><B>-noverify</B><DD>
Don't verify when reading a password from the terminal.
<DT id="12"><B>-quiet</B><DD>
Don't output warnings when passwords given at the command line are truncated.
<DT id="13"><B>-table</B><DD>
In the output list, prepend the cleartext password and a <FONT SIZE="-1">TAB</FONT> character
to each password hash.
<DT id="14"><B>-rand file...</B><DD>
A file or files containing random data used to seed the random number
generator.
Multiple files can be specified separated by an OS-dependent character.
The separator is <B>;</B> for MS-Windows, <B>,</B> for OpenVMS, and <B>:</B> for
all others.
<DT id="15">[<B>-writerand file</B>]<DD>
Writes random data to the specified <I>file</I> upon exit.
This can be used with a subsequent <B>-rand</B> flag.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>EXAMPLES</H2>
<PRE>
% openssl passwd -crypt -salt xx password
xxj31ZMTZzkVA
% openssl passwd -1 -salt xxxxxxxx password
$1$xxxxxxxx$UYCIxa628.9qXjpQCjM4a.
% openssl passwd -apr1 -salt xxxxxxxx password
$apr1$xxxxxxxx$dxHfLAsjHkDRmG83UXe8K0
% openssl passwd -aixmd5 -salt xxxxxxxx password
xxxxxxxx$8Oaipk/GPKhC64w/YVeFD/
</PRE>
<A NAME="lbAG">&nbsp;</A>
<H2>COPYRIGHT</H2>
Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
<P>
Licensed under the OpenSSL license (the ``License''). You may not use
this file except in compliance with the License. You can obtain a copy
in the file <FONT SIZE="-1">LICENSE</FONT> in the source distribution or at
&lt;<A HREF="https://www.openssl.org/source/license.html">https://www.openssl.org/source/license.html</A>&gt;.
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="16"><A HREF="#lbAB">NAME</A><DD>
<DT id="17"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="18"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="19"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="20"><A HREF="#lbAF">EXAMPLES</A><DD>
<DT id="21"><A HREF="#lbAG">COPYRIGHT</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:21 GMT, March 31, 2021
</BODY>
</HTML>