»
EnglishFrenchVietnamese

Print - Password Generator - JavaScriptBank.com

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

Password Generator © JavaScriptBank.comGenerate a random JavaScript password with the ability to include numberic and characters restrictions.

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



JavaScript
<script language="JavaScript">// [email protected] Titel(){ AenderDatum=document.lastModified.substring(0,11); document.title=document.title + AenderDatum;}function Vorbereiten(){ document.Eingabe.Passwort.value=""; Passwort();}function Passwort(){ Zeichen=new Array("","","","","","","","","","","","0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"); while(document.Eingabe.Passwort.value.length<document.Eingabe.Stellen.value) {  document.Eingabe.Ablage.value=Math.random();  Eins=document.Eingabe.Ablage.value.substring(2,3);  Zwei=document.Eingabe.Ablage.value.substring(3,4);  if(Eins>0 && Zwei>0)  {   document.Eingabe.Ablage.value=Eins + Zwei;   if(document.Eingabe.Ablage.value<73)   {    document.Eingabe.Passwort.value=document.Eingabe.Passwort.value + Zeichen[document.Eingabe.Ablage.value];   }  } } Wieder();}function Wieder(){ Check=confirm("Passwort:\n" + document.Eingabe.Passwort.value + "\nNeues Passwort erstellen?"); if(Check==true) {  Vorbereiten(); }}</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<body onload="Titel()"><form name="Eingabe"><input type="hidden" name="Ablage" value="abc"><table><tbody><tr> <td><p>Zeichenanzahl:</p></td> <td><input type="text" name="Stellen" value="10"><span style="font-size: 12pt;">(maximal 5249)</span></td></tr><tr> <td><p>Passwort:</p></td> <td><input type="text" name="Passwort" size="86"></td></tr><tr> <td colspan="3"><input type="button" value="Passwort erstellen" onclick="Vorbereiten()"></td></tr></tbody></table></form></body><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->