version 1.55, 2016/08/19 08:46:38 |
version 1.56, 2016/08/20 07:56:09 |
|
|
with the |
with the |
.Fl VAfile |
.Fl VAfile |
option. |
option. |
.\" |
|
.\" PASSWD |
|
.\" |
|
.Sh PASSWD |
.Sh PASSWD |
.nr nS 1 |
.nr nS 1 |
.Nm "openssl passwd" |
.Nm "openssl passwd" |
|
|
.Pp |
.Pp |
The |
The |
.Nm passwd |
.Nm passwd |
command computes the hash of a password typed at run-time |
command computes the hash of a password. |
or the hash of each password in a list. |
|
The password list is taken from the named |
|
.Ar file |
|
for option |
|
.Fl in , |
|
from stdin for option |
|
.Fl stdin , |
|
or from the command line, or from the terminal otherwise. |
|
The |
|
.Ux |
|
standard algorithm |
|
.Em crypt |
|
and the MD5-based |
|
.Bx |
|
password algorithm |
|
.Em 1 |
|
and its Apache variant |
|
.Em apr1 |
|
are available. |
|
.Pp |
.Pp |
The options are as follows: |
The options are as follows: |
.Bl -tag -width Ds |
.Bl -tag -width Ds |
|
|
Use the MD5 based |
Use the MD5 based |
.Bx |
.Bx |
password algorithm |
password algorithm |
.Em 1 . |
.Qq 1 . |
.It Fl apr1 |
.It Fl apr1 |
Use the |
Use the |
.Em apr1 |
.Qq apr1 |
algorithm |
algorithm |
.Pq Apache variant of the |
.Po |
|
Apache variant of the |
.Bx |
.Bx |
algorithm. |
algorithm |
|
.Pc . |
.It Fl crypt |
.It Fl crypt |
Use the |
Use the |
.Em crypt |
.Qq crypt |
algorithm |
algorithm (the default). |
.Pq default . |
|
.It Fl in Ar file |
.It Fl in Ar file |
Read passwords from |
Read passwords from |
.Ar file . |
.Ar file . |
|
|
.Fl table |
.Fl table |
option. |
option. |
.It Fl salt Ar string |
.It Fl salt Ar string |
Use the specified |
Use the salt specified by |
.Ar salt . |
.Ar string . |
When reading a password from the terminal, this implies |
When reading a password from the terminal, this implies |
.Fl noverify . |
.Fl noverify . |
.It Fl stdin |
.It Fl stdin |
Read passwords from |
Read passwords from standard input. |
.Em stdin . |
|
.It Fl table |
.It Fl table |
In the output list, prepend the cleartext password and a TAB character |
In the output list, prepend the cleartext password and a TAB character |
to each password hash. |
to each password hash. |
.El |
.El |
.Sh PASSWD EXAMPLES |
|
.Dl $ openssl passwd -crypt -salt xx password |
|
prints |
|
.Qq xxj31ZMTZzkVA . |
|
.Pp |
|
.Dl $ openssl passwd -1 -salt xxxxxxxx password |
|
prints |
|
.Qq $1$xxxxxxxx$UYCIxa628.9qXjpQCjM4a. . |
|
.Pp |
|
.Dl $ openssl passwd -apr1 -salt xxxxxxxx password |
|
prints |
|
.Qq $apr1$xxxxxxxx$dxHfLAsjHkDRmG83UXe8K0 . |
|
.\" |
.\" |
.\" PKCS7 |
.\" PKCS7 |
.\" |
.\" |