Crypt-Diceware
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/Crypt/Diceware.pm view on Meta::CPAN
),
"getc"
);
sub _build_words {
my ( $class, $name, $arg ) = @_;
$arg ||= {};
my $list;
my $entropy = $arg->{entropy} || $ENTROPY;
if ( exists $arg->{file} ) {
my @list = do { local (@ARGV) = $arg->{file}; <> };
chomp(@list);
$list = \@list;
}
else {
my $word_class = $arg->{wordlist} || 'Common';
unless ( $word_class =~ /::/ ) {
$word_class = "Crypt::Diceware::Wordlist::$word_class";
}
load_class($word_class);
$list = do {
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.569 second using v1.00-cache-2.02-grep-82fe00e-cpan-da92000dfeb )