[NCLUG] speaking of high school

Mike Loseke mike at verinet.com
Tue Feb 13 11:20:04 MST 2001


Thus spake mike cullerton:
> hey all,
> 
>    anyway, i'm wondering if there are standard (good) ways of generating
> random passwords out there.

 For something like this I would do something simple: generate a variable
length string of random characters of mixed case with some numbers and
special characters thrown in for good measure.

 For example (in pseudo code):

@chars = (A-Z, a-z, 0-9, [_-^]);
$length = random(6-10);
while($i < $length) {
  $password .= random(@chars, seed(time));
  $i++;
}
print $password;
 
 You get the idea. :-) It's really rough/bad perl (p == pseudo) but it's
simple enough and can get you a unique enough password for the application.

-- 
   Mike Loseke    | If at first you don't succeed,
 mike at verinet.com | increase the amperage.



More information about the NCLUG mailing list