1OPENSSL-PASSWD(1ossl)               OpenSSL              OPENSSL-PASSWD(1ossl)
2
3
4

NAME

6       openssl-passwd - compute password hashes
7

SYNOPSIS

9       openssl passwd [-help] [-1] [-apr1] [-aixmd5] [-5] [-6] [-salt string]
10       [-in file] [-stdin] [-noverify] [-quiet] [-table] [-reverse] [-rand
11       files] [-writerand file] [-provider name] [-provider-path path]
12       [-propquery propq] [password]
13

DESCRIPTION

15       This command computes the hash of a password typed at run-time or the
16       hash of each password in a list.  The password list is taken from the
17       named file for option -in, from stdin for option -stdin, or from the
18       command line, or from the terminal otherwise.
19

OPTIONS

21       -help
22           Print out a usage message.
23
24       -1  Use the MD5 based BSD password algorithm 1 (default).
25
26       -apr1
27           Use the apr1 algorithm (Apache variant of the BSD algorithm).
28
29       -aixmd5
30           Use the AIX MD5 algorithm (AIX variant of the BSD algorithm).
31
32       -5
33       -6  Use the SHA256 / SHA512 based algorithms defined by Ulrich Drepper.
34           See <https://www.akkadia.org/drepper/SHA-crypt.txt>.
35
36       -salt string
37           Use the specified salt.  When reading a password from the terminal,
38           this implies -noverify.
39
40       -in file
41           Read passwords from file.
42
43       -stdin
44           Read passwords from stdin.
45
46       -noverify
47           Don't verify when reading a password from the terminal.
48
49       -quiet
50           Don't output warnings when passwords given at the command line are
51           truncated.
52
53       -table
54           In the output list, prepend the cleartext password and a TAB
55           character to each password hash.
56
57       -reverse
58           When the -table option is used, reverse the order of cleartext and
59           hash.
60
61       -rand files, -writerand file
62           See "Random State Options" in openssl(1) for details.
63
64       -provider name
65       -provider-path path
66       -propquery propq
67           See "Provider Options" in openssl(1), provider(7), and property(7).
68

EXAMPLES

70         % openssl passwd -1 -salt xxxxxxxx password
71         $1$xxxxxxxx$UYCIxa628.9qXjpQCjM4a.
72
73         % openssl passwd -apr1 -salt xxxxxxxx password
74         $apr1$xxxxxxxx$dxHfLAsjHkDRmG83UXe8K0
75
76         % openssl passwd -aixmd5 -salt xxxxxxxx password
77         xxxxxxxx$8Oaipk/GPKhC64w/YVeFD/
78

HISTORY

80       The -crypt option was removed in OpenSSL 3.0.
81
83       Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
84
85       Licensed under the Apache License 2.0 (the "License").  You may not use
86       this file except in compliance with the License.  You can obtain a copy
87       in the file LICENSE in the source distribution or at
88       <https://www.openssl.org/source/license.html>.
89
90
91
923.0.5                             2022-07-05             OPENSSL-PASSWD(1ossl)
Impressum