App-Genpass
view release on metacpan or search on metacpan
lib/App/Genpass.pm view on Meta::CPAN
All special characters.
Default: [ '!', '@', '#', '$', '%', '^', '&', '*', '(', ')' ].
(not including excluded chars)
=back
=head2 generate
This method generates the password or passwords.
It accepts an optional parameter indicating how many passwords to generate.
$gp = App::Genpass->new();
my @passwords = $gp->generate(300); # 300 passwords to go
If you do not provide a parameter, it will use the default number of passwords
to generate, defined by the attribute B<number> explained above.
This method tries to be tricky and DWIM (or rather, DWYM). That is, if you
request it to generate only one password and use scalar context
(C<< my $p = $gp->generate(1) >>), it will return a single password.
However, if you try to generate multiple passwords and use scalar context
(C<< my $p = $gp->generate(30) >>), it will return an array reference for the
passwords.
Generating passwords with list context (C<< my @p = $gp->generate(...) >>)
will always return a list of the passwords, even if it's a single password.
=head2 get_config_from_file
Reads the configuration file using L<Config::Any>.
Shamelessly lifted from L<MooseX::SimpleConfig>.
=head1 AUTHOR
Sawyer X, C<< <xsawyerx at cpan.org> >>
=head1 DEPENDENCIES
L<Carp>
L<Moo>
L<MooX::Types::MooseLike>
L<Getopt::Long>
L<File::Spec>
L<Config::Any>
L<File::HomeDir>
L<List::AllUtils>
=head1 BUGS AND LIMITATIONS
Please report any bugs or feature requests to C<bug-app-genpass at rt.cpan.org>,
or through the web interface at
L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=App-Genpass>.
I will be notified, and then you'll automatically be notified of progress on
your bug as I make changes.
=head1 SUPPORT
You can find documentation for this module with the perldoc command.
perldoc App::Genpass
You can also look for information at:
=over 4
=item * Github: App::Genpass repository
L<http://github.com/xsawyerx/app-genpass>
=item * RT: CPAN's request tracker
L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=App-Genpass>
=item * AnnoCPAN: Annotated CPAN documentation
L<http://annocpan.org/dist/App-Genpass>
=item * CPAN Ratings
L<http://cpanratings.perl.org/d/App-Genpass>
=item * Search CPAN
L<http://search.cpan.org/dist/App-Genpass/>
=back
=head1 AUTHOR
Sawyer X <xsawyerx@cpan.org>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Sawyer X.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
( run in 1.340 second using v1.01-cache-2.11-cpan-39bf76dae61 )