mkpasswd.pl(1p)

mkpasswd.pl1p

Example to generate new password with string::mkpasswd

Usage

mkpasswd.pl [-options]

Overview

This program generates a random password, allowing for some tuning of character distribution. The password is sent to standard output.

Options

-l # | --length=#

The total length of the password. The default is 9.

-d # | --digits=#

The minimum number of digits that will appear in the final password. The default is 2.

-c # | --lower=#

The minimum number of lower-case characters that will appear in the final password. The default is 2.

-C # | --upper=#

The minimum number of upper-case characters that will appear in the final password. The default is 2.

-s # | --special=#

The minimum number of non-alphanumeric characters that will appear in the final password. The default is 1.

-2 | --distribute

If specified, password characters will be distributed between the left- and right-hand sides of the keyboard. This makes it more difficult for an onlooker to see the password as it is typed.

--nodigits | --no-digits

Alias for --digits=0.

--nolower | --no-lower

Alias for --lower=0.

--noupper | --no-upper

Alias for --upper=0.

--nospecial | --no-special

Alias for --special=0.

Todo

•

For completeness, add user password setting functionality as found in Expect's mkpasswd(1) example.

Aknowledgements

Don Libes of the National Institute of Standards and Technology, who wrote the Expect example, mkpasswd(1).

Releases

10 releases since Debian 4.0 (Etch); the text changed 6 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8–10
  6. 11
  7. 12–13

--distribute since Debian 6.0 (Squeeze); --no-digits since Debian 6.0 (Squeeze); --no-lower since Debian 6.0 (Squeeze); --no-special since Debian 6.0 (Squeeze); --no-upper since Debian 6.0 (Squeeze); --nodigits since Debian 6.0 (Squeeze); --nolower since Debian 6.0 (Squeeze); --nospecial since Debian 6.0 (Squeeze); --noupper since Debian 6.0 (Squeeze); -2 since Debian 6.0 (Squeeze).

Bugs

•

While not really a bug, the .pl extension has been added to avoid conflict with the program of the same name distributed with Expect.

Author

Chris Grau <[email protected]>

From libstring-mkpasswd-perl 0.05-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.