»
EnglishFrenchVietnamese

Print - Random password generator - JavaScriptBank.com

Full version: jsB@nk » Security » Encryption » Random password generator
URL: https://www.javascriptbank.com/random-password-generator.html

Random password generator © JavaScriptBank.comHaving a difficult time thinking up a password? Need to automatically generate a JavaScript password as part of a larger application? This JavaScript can help! It randomly creates a JavaScript password of any specified length using alphabetic and numeric input.

Full version: jsB@nk » Security » Encryption » Random password generator
URL: https://www.javascriptbank.com/random-password-generator.html



JavaScript
<script language="JavaScript"><!---//Written By Bill "Ace" Fredericksonfunction rndPw() {  variStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";  var n=0;  var i=0;  var s="";  len=document.frmPw.txtMax.value;  for (x=1;x<=len;x++) {   n=Math.random()*62;   i=Math.round(n);   s+=iStr.charAt(i);   }  document.frmPw.txtRandpw.value=s;}//--> </script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<form name="frmPw"> Length of Password : <input type="text" name="txtMax" size="5" value="8"><br> <input type="button" value="Pick Random Password" onclick="rndPw()" )=""><br><font size="+1">Random Password : <input type="text" name="txtRandpw" size="20" value=""></form><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->