»
EnglishFrenchVietnamese

Print - Random Password Generator 2 - JavaScriptBank.com

Full version: jsB@nk » Security » Passwordor » Random Password Generator 2
URL: http://www.javascriptbank.com/random-password-generator-2.html

Random Password Generator 2 © JavaScriptBank.comThis JavaScript can be used to generate random passwords for improved JavaScript password strength.

Full version: jsB@nk » Security » Passwordor » Random Password Generator 2
URL: http://www.javascriptbank.com/random-password-generator-2.html



JavaScript
<SCRIPT LANGUAGE="JavaScript"><!-- Beginfunction randomPassword(length){ chars ="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"; pass= ""; for(x=0;x<length;x++) { i = Math.floor(Math.random() * 62);pass += chars.charAt(i); } return pass;}function formSubmit(){ passform.passbox.value = randomPassword(passform.length.value);return false;}// End --></script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<table align="center" border="1"><tr><td valign="middle" align="center"><center>Random Password Generator</center><form name="passform"><p>Length: <select name="length"> <optionvalue="1">01</option> <optionvalue="2">02</option> <optionvalue="3">03</option> <optionvalue="4">04</option> <optionvalue="5">05</option> <optionvalue="6">06</option> <optionvalue="7">07</option> <optionvalue="8">08</option> <optionvalue="9">09</option> <optionvalue="10">10</option> <optionvalue="11">11</option> <optionvalue="12">12</option> <optionvalue="13">13</option> <optionvalue="14">14</option> <optionvalue="15">15</option> <optionvalue="16">16</option> <optionvalue="17">17</option> <optionvalue="18">18</option> <optionvalue="19">19</option> <optionvalue="20">20</option> <optionvalue="21">21</option> <optionvalue="22">22</option> <optionvalue="23">23</option> <optionvalue="24">24</option> <optionvalue="25">25</option> <optionvalue="26">26</option> <optionvalue="27">27</option> <optionvalue="28">28</option> <optionvalue="29">29</option> <optionvalue="30">30</option> <optionvalue="31">31</option> <optionvalue="32">32</option> <optionvalue="33">33</option> <optionvalue="34">34</option> <optionvalue="35">35</option> <optionvalue="36">36</option> <optionvalue="37">37</option> <optionvalue="38">38</option> <optionvalue="39">39</option> <optionvalue="40">40</option> <optionvalue="41">41</option> <optionvalue="42">42</option> <optionvalue="43">43</option> <optionvalue="44">44</option> <optionvalue="45">45</option> <optionvalue="46">46</option> <optionvalue="47">47</option> <optionvalue="48">48</option> <optionvalue="49">49</option> <optionvalue="50">50</option></select></p><p>Password: <input name="passbox" type="text" size="50"tabindex="1"></p><p><input type="button" value="Generate"onClick="javascript:formSubmit()" tabindex="2"> <inputtype="reset" value="Clear" tabindex="3"></p></form></td></tr></table><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->