NAME
Data::SimplePassword - Simple random password generator
SYNOPSIS
use Data::SimplePassword;
my $sp = Data::SimplePassword->new;
$sp->chars( 0..9, 'a'..'z', 'A'..'Z' ); # optional
my $password = $sp->make_password( 8 ); # length
DESCRIPTION
YA very easy-to-use but a bit strong random password generator.
METHODS
- chars
-
$sp->chars( 0..9, 'a'..'z', 'A'..'Z' ); # default $sp->chars( 0..9, 'a'..'Z', qw(+ /) ); $sp->chars( 0..9 );
Sets an array of characters you want to use in your password string.
- make_password
-
my $password = $sp->make_password( 8 ); # default my $password = $sp->make_password( 1024 );
Makes password string and just returns it. You can set the byte length as an integer.
DEPENDENCY
Class::Accessor, Crypt::Random, Math::Random::MT
SEE ALSO
Crypt::GeneratePassword, Crypt::RandPasswd, Data::RandomPass, String::MkPasswd
AUTHOR
Okamoto RYO <ryo@aquahill.net>