1
2Crypt::RandPasswd - random password generator based on FIPS-181
3
4By John Porter (JDPORTER@cpan.org)
5
6This is an implementation of the Automated Password Generator standard,
7defined in FIPS Publication 181, "Standard for Automated Password Generator":
8http://www.itl.nist.gov/fipspubs/fip181.htm
9
10	use Crypt::RandPasswd;
11	( $word, $hyphenated ) = Crypt::RandPasswd::word( $minlen, $maxlen );
12	$word = Crypt::RandPasswd::word( $minlen, $maxlen );
13	$word = Crypt::RandPasswd::letters( $minlen, $maxlen );
14	$word = Crypt::RandPasswd::chars( $minlen, $maxlen );
15
16	# override the defaults for these functions:
17	*Crypt::RandPasswd::rng = \&my_random_number_generator;
18	*Crypt::RandPasswd::restrict = \&my_restriction_filter;
19
20The module file can also be run directly as a script:
21
22# To print the usage statement:
23% perl Crypt/RandPasswd.pm  -help
24
25# To print out one password using the default parameter values:
26% perl Crypt/RandPasswd.pm
27
28