blib/lib/Acme/CPANModules/RandomPassword.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 16 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary
1 package Acme::CPANModules::RandomPassword;
2  
3 1 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
4 1 our $DATE = '2021-05-26'; # DATE
5 1 our $DIST = 'Acme-CPANModules-RandomPassword'; # DIST
6 1 our $VERSION = '0.001'; # VERSION
7  
8 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use Acme::CPANModulesUtil::Misc;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 1 my $text = <<'_';
12 **Generating**
13  
14 <pm:App::genpw> can generate passwords with patterns and wordlists. It loads
15 secure random number generator if available. By default it generates 12-20
16 character-long passwords comprising of ASCII letters and digits. There are
17 several variants which are basically wrappers for convenience:
18 <pm:App::genpw::base64>, <pm:App::genpw::base58>, <pm:App::genpw::base56>,
19 <pm:App::genpw::wordlist> (use words from wordlists), <pm:App::genpw::ind> (use
20 Indonesian words).
21  
22 <pm:Crypt::GeneratePassword> creates secure random pronounceable passwords. It
23 provides function `word()` which generates a sequence of letters with vocals in
24 between consonants so the word is still pronounceable, even though it's a
25 nonsense word. It also provides `chars()` which produces a sequence of random
26 letters, digits, and some symbols. It still uses `rand()` by default which is
27 not cryptographically secure.
28  
29 <pm:Crypt::RandPasswd> implements the old FIPS 181 (1993, withdrawn 2015)
30 standard to generate pronounceable password, which is no longer recommended.
31  
32 <pm:Crypt::PassGen>, yet another module to create random words that look like
33 real words. It does not use a secure random number generator by default.
34  
35 <pm:Data::SimplePassword>
36  
37 <pm:String::MkPasswd>
38  
39 <pm:Data::Random::String> and <pm:Data::Random>.
40  
41 <pm:Text::Password::Pronounceable::RandomCase>
42  
43 <pm:String::Random>
44  
45 <pm:String::Urandom>
46  
47 <pm:Crypt::XkcdPassword>, a password generator module inspired by
48 <http://xkcd.com/936/>.
49  
50 <pm:CtrlO::Crypt::XkcdPassword>, another password generator module inspired by
51 <http://xkcd.com/936/>.
52  
53 <pm:App::GenPass>
54  
55 <pm:Crypt::PW44>
56  
57 <pm:Crypt::YAPassGen>
58  
59 <pm:Session::Token>
60  
61 <pm:Text::Password::Pronounceable>
62  
63 Keywords: random secure password
64  
65 _
66  
67 1 our $LIST = {
68 summary => 'Generating random passwords',
69 description => $text,
70 };
71  
72 1 Acme::CPANModulesUtil::Misc::populate_entries_from_module_links_in_description;
73  
74 1 1;
75 # ABSTRACT: Generating random passwords
76  
77 __END__
↑ Summary