• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

lib/Crypt/H28-Oct-2013-2,5331,717

ChangesH A D28-Oct-2013424 1711

MANIFESTH A D28-Oct-2013236 98

META.jsonH A D28-Oct-2013849 3938

META.ymlH A D28-Oct-2013445 2120

Makefile.PLH A D28-Oct-2013915 3325

READMEH A D07-Apr-2013935 2818

test.plH A D07-Apr-20131 KiB3615

README

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