generate-random-password
NAME
generate-random-password
SYNOPSIS
generate-random-password [ --length=N ] [ --pattern=string ]
generate-random-password [ --man | --help ]
DESCRIPTION
This program uses perl's internal rand()
function to generate
random passwords.
OPTIONS
- --length=N
-
Produce a random password with at least this number of characters. The default is eight (8).
- --pattern=string
-
The characters in the pattern string have the following meanings.
For each upper case character, an element from the set will be used. For lower case characters, an element is used half of the time.
Where necessary, the password is padded out using the last set selected. See the EXAMPLES for more information.
The default is "CVCNCVCN", which matches the default length.
- --man
-
Print the manual page and exit.
- --help
-
Print a brief help message and exit.
EXAMPLES
./generate-random-password --length 10 --pattern CVCcNsCVCc wut6lovfxt
./generate-random-password --length 10 --pattern C dqgbpmgxmh
./generate-random-password --length 10 --pattern N 3650943126
./generate-random-password --length 10 --pattern ns 7';&>_"=+~
./generate-random-password --length 10 --pattern p ;DQ4`fSPLR
AUTHOR
Mark Suter <suter@humbug.org.au>
VERSION
$Id: generate-random-password.html,v 1.3 2017/01/11 01:40:39 suter Exp $