Re: Password generators

From: Chris Berry (compjma@hotmail.com)
Date: 06/25/02


Date: 25 Jun 2002 15:23:14 -0000
From: Chris Berry <compjma@hotmail.com>
To: security-basics@securityfocus.com


('binary' encoding is not supported, stored as-is) In-Reply-To: <20020623142953.55675.qmail@mail.com>

>Hi all,
>
>Could someone recommend a good (and free) password generator for Windows
NT /2000?
>
>Thanks.

Here is a script I found that could easily be modified to make any kind of
passwords you might like.

&lt;script&gt;

//Random password generator- by javascriptkit.com
//Visit JavaScript Kit (http://javascriptkit.com) for script
//Credit must stay intact for use

var keylist="abcdefghijklmnopqrstuvwxyz123456789"
var temp=''

function generatepass(plength){
temp=''
for (i=0;i<plength;i++)
temp+=keylist.charAt(Math.floor(Math.random()*keylist.length))
return temp
}

function populateform(enterlength){
document.pgenerate.output.value=generatepass(enterlength)
}
&lt;/script&gt;

<form name="pgenerate">
<input type="text" size=18 name="output">
<input type="button" value="Generate Password" onClick="populateform
(this.form.thelength.value)"><br>
<b>Password Length:</b> <input type="text" name="thelength" size=3
value="7">
</form>

<p align="center"><font face="arial" size="-2">This free script provided
by</font><br>
<font face="arial, helvetica" size="-2"><a
href="http://javascriptkit.com">JavaScript
Kit</a></font></p>


Loading