Debian Codegraph @

upstream/debian-unstable/man1/openssl-passwd.1ssl

raw
1 .\" -*- mode: troff; coding: utf-8 -*-
2 .\" Automatically generated by Pod::Man 5.0102 (Pod::Simple 3.45)
3 .\"
4 .\" Standard preamble:
5 .\" ========================================================================
6 .de Sp \" Vertical space (when we can't use .PP)
7 .if t .sp .5v
8 .if n .sp
9 ..
10 .de Vb \" Begin verbatim text
11 .ft CW
12 .nf
13 .ne \\$1
14 ..
15 .de Ve \" End verbatim text
16 .ft R
17 .fi
18 ..
19 .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
20 .ie n \{\
21 . ds C` ""
22 . ds C' ""
23 'br\}
24 .el\{\
25 . ds C`
26 . ds C'
27 'br\}
28 .\"
29 .\" Escape single quotes in literal strings from groff's Unicode transform.
30 .ie \n(.g .ds Aq \(aq
31 .el .ds Aq '
32 .\"
33 .\" If the F register is >0, we'll generate index entries on stderr for
34 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
35 .\" entries marked with X<> in POD. Of course, you'll have to process the
36 .\" output yourself in some meaningful fashion.
37 .\"
38 .\" Avoid warning from groff about undefined register 'F'.
39 .de IX
40 ..
41 .nr rF 0
42 .if \n(.g .if rF .nr rF 1
43 .if (\n(rF:(\n(.g==0)) \{\
44 . if \nF \{\
45 . de IX
46 . tm Index:\\$1\t\\n%\t"\\$2"
47 ..
48 . if !\nF==2 \{\
49 . nr % 0
50 . nr F 2
51 . \}
52 . \}
53 .\}
54 .rr rF
55 .\" ========================================================================
56 .\"
57 .IX Title "OPENSSL-PASSWD 1SSL"
58 .TH OPENSSL-PASSWD 1SSL 2026-04-07 3.6.2 OpenSSL
59 .\" For nroff, turn off justification. Always turn off hyphenation; it makes
60 .\" way too many mistakes in technical documents.
61 .if n .ad l
62 .nh
63 .SH NAME
64 openssl\-passwd \- compute password hashes
65 .SH SYNOPSIS
66 .IX Header "SYNOPSIS"
67 \&\fBopenssl passwd\fR
68 [\fB\-help\fR]
69 [\fB\-1\fR]
70 [\fB\-apr1\fR]
71 [\fB\-aixmd5\fR]
72 [\fB\-5\fR]
73 [\fB\-6\fR]
74 [\fB\-salt\fR \fIstring\fR]
75 [\fB\-in\fR \fIfile\fR]
76 [\fB\-stdin\fR]
77 [\fB\-noverify\fR]
78 [\fB\-quiet\fR]
79 [\fB\-table\fR]
80 [\fB\-reverse\fR]
81 [\fB\-rand\fR \fIfiles\fR]
82 [\fB\-writerand\fR \fIfile\fR]
83 [\fB\-provider\fR \fIname\fR]
84 [\fB\-provider\-path\fR \fIpath\fR]
85 [\fB\-provparam\fR \fI[name:]key=value\fR]
86 [\fB\-propquery\fR \fIpropq\fR]
87 [\fIpassword\fR]
88 .SH DESCRIPTION
89 .IX Header "DESCRIPTION"
90 This command computes the hash of a password typed at
91 run-time or the hash of each password in a list. The password list is
92 taken from the named file for option \fB\-in\fR, from stdin for
93 option \fB\-stdin\fR, or from the command line, or from the terminal otherwise.
94 .SH OPTIONS
95 .IX Header "OPTIONS"
96 .IP \fB\-help\fR 4
97 .IX Item "-help"
98 Print out a usage message.
99 .IP \fB\-1\fR 4
100 .IX Item "-1"
101 Use the MD5 based BSD password algorithm \fB1\fR (default).
102 .IP \fB\-apr1\fR 4
103 .IX Item "-apr1"
104 Use the \fBapr1\fR algorithm (Apache variant of the BSD algorithm).
105 .IP \fB\-aixmd5\fR 4
106 .IX Item "-aixmd5"
107 Use the \fBAIX MD5\fR algorithm (AIX variant of the BSD algorithm).
108 .IP \fB\-5\fR 4
109 .IX Item "-5"
110 .PD 0
111 .IP \fB\-6\fR 4
112 .IX Item "-6"
113 .PD
114 Use the \fBSHA256\fR / \fBSHA512\fR based algorithms defined by Ulrich Drepper.
115 See <https://www.akkadia.org/drepper/SHA\-crypt.txt>.
116 .IP "\fB\-salt\fR \fIstring\fR" 4
117 .IX Item "-salt string"
118 Use the specified salt.
119 When reading a password from the terminal, this implies \fB\-noverify\fR.
120 .IP "\fB\-in\fR \fIfile\fR" 4
121 .IX Item "-in file"
122 Read passwords from \fIfile\fR.
123 .IP \fB\-stdin\fR 4
124 .IX Item "-stdin"
125 Read passwords from \fBstdin\fR.
126 .IP \fB\-noverify\fR 4
127 .IX Item "-noverify"
128 Don't verify when reading a password from the terminal.
129 .IP \fB\-quiet\fR 4
130 .IX Item "-quiet"
131 Don't output warnings when passwords given at the command line are truncated.
132 .IP \fB\-table\fR 4
133 .IX Item "-table"
134 In the output list, prepend the cleartext password and a TAB character
135 to each password hash.
136 .IP \fB\-reverse\fR 4
137 .IX Item "-reverse"
138 When the \fB\-table\fR option is used, reverse the order of cleartext and hash.
139 .IP "\fB\-rand\fR \fIfiles\fR, \fB\-writerand\fR \fIfile\fR" 4
140 .IX Item "-rand files, -writerand file"
141 See "Random State Options" in \fBopenssl\fR\|(1) for details.
142 .IP "\fB\-provider\fR \fIname\fR" 4
143 .IX Item "-provider name"
144 .PD 0
145 .IP "\fB\-provider\-path\fR \fIpath\fR" 4
146 .IX Item "-provider-path path"
147 .IP "\fB\-provparam\fR \fI[name:]key=value\fR" 4
148 .IX Item "-provparam [name:]key=value"
149 .IP "\fB\-propquery\fR \fIpropq\fR" 4
150 .IX Item "-propquery propq"
151 .PD
152 See "Provider Options" in \fBopenssl\fR\|(1), \fBprovider\fR\|(7), and \fBproperty\fR\|(7).
153 .SH EXAMPLES
154 .IX Header "EXAMPLES"
155 .Vb 2
156 \& % openssl passwd \-1 \-salt xxxxxxxx password
157 \& $1$xxxxxxxx$UYCIxa628.9qXjpQCjM4a.
158 \&
159 \& % openssl passwd \-apr1 \-salt xxxxxxxx password
160 \& $apr1$xxxxxxxx$dxHfLAsjHkDRmG83UXe8K0
161 \&
162 \& % openssl passwd \-aixmd5 \-salt xxxxxxxx password
163 \& xxxxxxxx$8Oaipk/GPKhC64w/YVeFD/
164 .Ve
165 .SH HISTORY
166 .IX Header "HISTORY"
167 The \fB\-crypt\fR option was removed in OpenSSL 3.0.
168 .SH COPYRIGHT
169 .IX Header "COPYRIGHT"
170 Copyright 2000\-2021 The OpenSSL Project Authors. All Rights Reserved.
171 .PP
172 Licensed under the Apache License 2.0 (the "License"). You may not use
173 this file except in compliance with the License. You can obtain a copy
174 in the file LICENSE in the source distribution or at
175 <https://www.openssl.org/source/license.html>.