on Wed, 29 May 2002 05:32:42 GMT, [EMAIL PROTECTED] (Langa
Kentane) wrote:
> Any ideas if there exists a more secure alternative to this
> library? From the documentation it says that the library only
> generates passwords in with no panctuation & special chars & all
> the passwords are not in mixed case. Is there a library out there
> that addresses the abovementioned concerns?
Why don't you generate true random passwords, with e.g. the following
code:
#! perl -w
use strict;
use constant LENGTH => 8;
my @allowed_chars = ('A'..'Z', 'a'..'z', 0..9);
srand; # for perl < 5.004
my $password = '';
$password .= $allowed_chars[rand @allowed_chars] for (1..LENGTH);
You can then alter LENGHT and '@allowed_chars' to suit your needs.
--
felix
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]