Jason> Anyone have code to generate a reasonable password randomly?
I forget where I got it from, but I've stuck a copy of pwgen.shar at:
<URL:http://www.io.com/~cloos/pwgen.shar>
Its goal is pronounceable passwds.
Also, if anyone cares to search, I beleive I recall a posting to one
of c.s.{misc,unix} of a program which output random names, according
to configurable rulesets.
Or, just grab a couple of lines from /usr/dics/words of some minimum
length and combine them in a `<word> <punctuation> <word>' construct
and use that. Maybe:
$min = 6;
open(DICT, "</usr/dict/words") or die "cannot open words";
@words=<DICT> or die "cannot slurp words";
while (length($p1) < $min) {
$p1 = $words[rand($#words)];
}
while (length($p2) < $min) {
$p2 = $words[rand($#words)];
}
chomp ($p1, $p2);
$pass=ucfirst($p1)."+".ucfirst($p2);
(Of course that is a very rough first hack.)
That should at least create memorable passwords.
-JimC
--
James H. Cloos, Jr.
<cloos@jhcloos.com>
References:
-
Quickies
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>
|
|