Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Release history of Crypt-RandPasswd
Perl
Tag: v0.04

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/Crypt
Changes
MANIFEST
Makefile.PL
README
test.pl

README

Crypt::RandPasswd - random password generator based on FIPS-181

By John Porter (JDPORTER@cpan.org)

This is an implementation of the Automated Password Generator standard,
defined in FIPS Publication 181, "Standard for Automated Password Generator":
http://www.itl.nist.gov/fipspubs/fip181.htm

	use Crypt::RandPasswd;
	( $word, $hyphenated ) = Crypt::RandPasswd::word( $minlen, $maxlen );
	$word = Crypt::RandPasswd::word( $minlen, $maxlen );
	$word = Crypt::RandPasswd::letters( $minlen, $maxlen );
	$word = Crypt::RandPasswd::chars( $minlen, $maxlen );

	# override the defaults for these functions:
	*Crypt::RandPasswd::rng = \&my_random_number_generator;
	*Crypt::RandPasswd::restrict = \&my_restriction_filter;

The module file can also be run directly as a script:

# To print the usage statement:
% perl Crypt/RandPasswd.pm  -help

# To print out one password using the default parameter values:
% perl Crypt/RandPasswd.pm 

Something went wrong with that request. Please try again.