mkpasswd.pl - example to generate new password with String::MkPasswd
mkpasswd.pl [-options] #!/bin/sh NEW_PASSWD=`mkpasswd.pl`
This program generates a random password, allowing for some tuning of character distribution. The password is sent to standard output.
The total length of the password. The default is 9.
The minimum number of digits that will appear in the final password. The default is 2.
The minimum number of lower-case characters that will appear in the final password. The default is 2.
The minimum number of upper-case characters that will appear in the final password. The default is 2.
The minimum number of non-alphanumeric characters that will appear in the final password. The default is 1.
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.
Alias for --digits=0.
Alias for --lower=0.
Alias for --upper=0.
Alias for --special=0.
While not really a bug, the .pl extension has been added to avoid conflict with the program of the same name distributed with Expect.
For completeness, add user password setting functionality as found in Expect's mkpasswd(1) example.
http://expect.nist.gov/#examples, mkpasswd(1), String::MkPasswd
Don Libes of the National Institute of Standards and Technology, who wrote the Expect example, mkpasswd(1).
Chris Grau <cgrau@cpan.org>
Copyright (C) 2003-2004 by Chris Grau
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.1 or, at your option, any later version of Perl 5 you may have available.
To install String::MkPasswd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm String::MkPasswd
CPAN shell
perl -MCPAN -e shell install String::MkPasswd
For more information on module installation, please visit the detailed CPAN module installation guide.