Search this site!

Return to the CSB Support home page
Open up your CD drive!   |   Page Counters   |   Convert WORD document   |   Download Counter   |   Form Mailer1   |   Form Mailer2   |   Display special characters   |   Display subscript & superscripts   |   Random Password Generator   |   Progress Bar Generator
Random Password Generator
Description:
I recently found this little Javascript that will generate a random password.  Very useful when you want to assign a person a random password!

This script was found at the JavaScript Kit web site.
How to use:
Simply copy and paste the code at the end of this page onto your CSB page using the Insert > HTML Code function.

The only modifications to the original script that I made were:
1) remove using the letter 'o' from a generated password
2) default to an 8 character password
Example:
Click on the 'Generate Password' button to automatically generate yourself a password!


Password Length:

This free script provided by
JavaScript Kit

Download the code
right click on link, then click on 'Save target (or frame) as'
Other information:

Source code:
<script>

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

var keylist="abcdefghijklmnpqrstuvwxyz123456789"
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)
}
</script>

<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="8">
</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>