Great Circle Associates Majordomo-Workers
(August 1998)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Quickies
From: "James H. Cloos Jr." <cloos @ jhcloos . com>
Date: 19 Aug 1998 06:34:18 -0500
To: Jason L Tibbitts III <tibbs @ hpc . uh . edu>
Cc: majordomo-workers @ GreatCircle . COM
In-reply-to: Jason L Tibbitts III's message of "18 Aug 1998 21:53:32 -0500"
References: <ufahfz9hec3.fsf@sina.hpc.uh.edu>

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>
Indexed By Date Previous: Re: Quickies
From: Manar Hussain <manar@ivision.co.uk>
Next: Re: Quickies
From: "Frank P. Bresz" <fpb@BreszLand.COM>
Indexed By Thread Previous: Re: Quickies
From: Manar Hussain <manar@ivision.co.uk>
Next: Re: Quickies
From: "Frank P. Bresz" <fpb@BreszLand.COM>

Google
 
Search Internet Search www.greatcircle.com