Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: A reasonable temporary password generator?

by valdez (Monsignor)
on May 10, 2003 at 13:12 UTC ( [id://257125]=note: print w/replies, xml ) Need Help??

in reply to A reasonable temporary password generator?

Next time search also on CPAN :) If you search password on CPAN, you will get the following modules:

  1. Crypt::GeneratePassword: generate secure random pronounceable passwords
  2. Data::Password: Perl extension for assesing password quality

These modules will give what you need and let you follow merlyn's suggestions. For example:

#!/usr/bin/perl use strict; use warnings; use Crypt::GeneratePassword; use Data::Password qw(:all); my $password = Crypt::GeneratePassword::word(8, 8); $DICTIONARY = 4; $GROUPS = 1; $FOLLOWING_KEYBOARD = 1; print "password $password "; if (my $check = IsBadPassword($password)) { print "not good, because $check\n"; } else { print "is good\n"; }

Ciao, Valerio

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://257125]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-06-16 19:37 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.