Home | History | Annotate | Line # | Download | only in man1
      1  1.1  christos =pod
      2  1.1  christos 
      3  1.1  christos =head1 NAME
      4  1.1  christos 
      5  1.1  christos openssl-passwd,
      6  1.1  christos passwd - compute password hashes
      7  1.1  christos 
      8  1.1  christos =head1 SYNOPSIS
      9  1.1  christos 
     10  1.1  christos B<openssl passwd>
     11  1.1  christos [B<-help>]
     12  1.1  christos [B<-crypt>]
     13  1.1  christos [B<-1>]
     14  1.1  christos [B<-apr1>]
     15  1.1  christos [B<-aixmd5>]
     16  1.1  christos [B<-5>]
     17  1.1  christos [B<-6>]
     18  1.1  christos [B<-salt> I<string>]
     19  1.1  christos [B<-in> I<file>]
     20  1.1  christos [B<-stdin>]
     21  1.1  christos [B<-noverify>]
     22  1.1  christos [B<-quiet>]
     23  1.1  christos [B<-table>]
     24  1.1  christos [B<-rand file...>]
     25  1.1  christos [B<-writerand file>]
     26  1.1  christos {I<password>}
     27  1.1  christos 
     28  1.1  christos =head1 DESCRIPTION
     29  1.1  christos 
     30  1.1  christos The B<passwd> command computes the hash of a password typed at
     31  1.1  christos run-time or the hash of each password in a list.  The password list is
     32  1.1  christos taken from the named file for option B<-in file>, from stdin for
     33  1.1  christos option B<-stdin>, or from the command line, or from the terminal otherwise.
     34  1.1  christos 
     35  1.1  christos =head1 OPTIONS
     36  1.1  christos 
     37  1.1  christos =over 4
     38  1.1  christos 
     39  1.1  christos =item B<-help>
     40  1.1  christos 
     41  1.1  christos Print out a usage message.
     42  1.1  christos 
     43  1.1  christos =item B<-crypt>
     44  1.1  christos 
     45  1.1  christos Use the B<crypt> algorithm (default).
     46  1.1  christos 
     47  1.1  christos =item B<-1>
     48  1.1  christos 
     49  1.1  christos Use the MD5 based BSD password algorithm B<1>.
     50  1.1  christos 
     51  1.1  christos =item B<-apr1>
     52  1.1  christos 
     53  1.1  christos Use the B<apr1> algorithm (Apache variant of the BSD algorithm).
     54  1.1  christos 
     55  1.1  christos =item B<-aixmd5>
     56  1.1  christos 
     57  1.1  christos Use the B<AIX MD5> algorithm (AIX variant of the BSD algorithm).
     58  1.1  christos 
     59  1.1  christos =item B<-5>
     60  1.1  christos 
     61  1.1  christos =item B<-6>
     62  1.1  christos 
     63  1.1  christos Use the B<SHA256> / B<SHA512> based algorithms defined by Ulrich Drepper.
     64  1.1  christos See L<https://www.akkadia.org/drepper/SHA-crypt.txt>.
     65  1.1  christos 
     66  1.1  christos =item B<-salt> I<string>
     67  1.1  christos 
     68  1.1  christos Use the specified salt.
     69  1.1  christos When reading a password from the terminal, this implies B<-noverify>.
     70  1.1  christos 
     71  1.1  christos =item B<-in> I<file>
     72  1.1  christos 
     73  1.1  christos Read passwords from I<file>.
     74  1.1  christos 
     75  1.1  christos =item B<-stdin>
     76  1.1  christos 
     77  1.1  christos Read passwords from B<stdin>.
     78  1.1  christos 
     79  1.1  christos =item B<-noverify>
     80  1.1  christos 
     81  1.1  christos Don't verify when reading a password from the terminal.
     82  1.1  christos 
     83  1.1  christos =item B<-quiet>
     84  1.1  christos 
     85  1.1  christos Don't output warnings when passwords given at the command line are truncated.
     86  1.1  christos 
     87  1.1  christos =item B<-table>
     88  1.1  christos 
     89  1.1  christos In the output list, prepend the cleartext password and a TAB character
     90  1.1  christos to each password hash.
     91  1.1  christos 
     92  1.1  christos =item B<-rand file...>
     93  1.1  christos 
     94  1.1  christos A file or files containing random data used to seed the random number
     95  1.1  christos generator.
     96  1.1  christos Multiple files can be specified separated by an OS-dependent character.
     97  1.1  christos The separator is B<;> for MS-Windows, B<,> for OpenVMS, and B<:> for
     98  1.1  christos all others.
     99  1.1  christos 
    100  1.1  christos =item [B<-writerand file>]
    101  1.1  christos 
    102  1.1  christos Writes random data to the specified I<file> upon exit.
    103  1.1  christos This can be used with a subsequent B<-rand> flag.
    104  1.1  christos 
    105  1.1  christos =back
    106  1.1  christos 
    107  1.1  christos =head1 EXAMPLES
    108  1.1  christos 
    109  1.1  christos   % openssl passwd -crypt -salt xx password
    110  1.1  christos   xxj31ZMTZzkVA
    111  1.1  christos 
    112  1.1  christos   % openssl passwd -1 -salt xxxxxxxx password
    113  1.1  christos   $1$xxxxxxxx$UYCIxa628.9qXjpQCjM4a.
    114  1.1  christos 
    115  1.1  christos   % openssl passwd -apr1 -salt xxxxxxxx password
    116  1.1  christos   $apr1$xxxxxxxx$dxHfLAsjHkDRmG83UXe8K0
    117  1.1  christos 
    118  1.1  christos   % openssl passwd -aixmd5 -salt xxxxxxxx password
    119  1.1  christos   xxxxxxxx$8Oaipk/GPKhC64w/YVeFD/
    120  1.1  christos 
    121  1.1  christos =head1 COPYRIGHT
    122  1.1  christos 
    123  1.1  christos Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
    124  1.1  christos 
    125  1.1  christos Licensed under the OpenSSL license (the "License").  You may not use
    126  1.1  christos this file except in compliance with the License.  You can obtain a copy
    127  1.1  christos in the file LICENSE in the source distribution or at
    128  1.1  christos L<https://www.openssl.org/source/license.html>.
    129  1.1  christos 
    130  1.1  christos =cut
    131