Passwortschutz

Status
Nicht offen für weitere Antworten.
Java-Script? Vielleicht nicht so sicher aber reicht ;)

HTML:
 <html>
 <head>
 <script type="text/javascript">
 <!--
   function testEncode(form) {
   var dater = new Date();
   Day = dater.getDate();
   dater = null;
   var Ret = encode (form.pwd.value, 12)
   location = Ret + ".htm"
   }
   function encode (OrigString, CipherVal) {
   Ref="0123456789abcdefghijklmnopqrstuvwxyz._~ABCDEFGHIJKLMNOPQRSTUVWXYZ"
   CipherVal = parseInt(CipherVal)
   var Temp=""
   for (Count=0; Count < OrigString.length; Count++) {
   var TempChar = OrigString.substring (Count, Count+1)
   var Conv = cton(TempChar)
   var Cipher=Conv^CipherVal
   Cipher=ntoc(Cipher)
   Temp += Cipher
   }
   return (Temp)
   }
   function cton (Char) {
   return (Ref.indexOf(Char));
   }
   function ntoc (Val) {
   return (Ref.substring(Val, Val+1))
   }
 // -->
 </script>
 </head>
 <body>
 <form name="testform" onsubmit="return(false)">
 Pa&szlig;wort: <input type="password" name="pwd" value="">
 <input type="button" name="button" value=" OK " onclick="testEncode(this.form)">
 </form>
 </body>
 </html>

Habs mal früher irgendwann ausprobiert und wollte auch mal was loswerden x)
 
Status
Nicht offen für weitere Antworten.
Zurück