This is a simple javascript that will generate n number of password with length l. If you think this is useful, please feel free to like my Facebook page or click this link. See the source code below:
<script>
var
keylist="abcdefghijklmnopqrstuvwxyz123456789"
var temp=''
function generatepass(plength,n){
temp='';
for
(j=0;j<n;j++){
for
(i=0;i<plength;i++);
temp+=keylist.charAt(Math.floor(Math.random()*keylist.length));
temp+="<br
/>";
}
return
temp ;
}
function populateform(vlength, n){
document.getElementById("result").innerHTML=generatepass(vlength,n);
}
</script>
<form name="formgen">
<b>Password Length:</b> <input
type="text" name="thelength" size="3"
value="5"><br />
<b>How many Passwords would you like to
generate?:</b> <input type="text" name="num"
size="3" value="1"><br />
<input type="button"
value="Generate Password"
onClick="populateform(this.form.thelength.value,this.form.num.value)"><br
/>
</form>
<div id="result"></div>
<br />
<p >Free Javascript Random Password
Generator<br />Provided by:
<a
href="http://adichosa.blogspot.com">adichosa.blogspot.com</a></p>
For Viral Stuff and Trending News please visit Fooviral.
For Viral Stuff and Trending News please visit Fooviral.
No comments:
Post a Comment