Hi,
I've been working on this script for AGES.. it uses a series of numbers to figure out what the password is, and then verifies. It's almost like.. it's too good to be true, but that's exactly what I'm trying to figure out. I think there may be something wrong with it.
The password is "password"
So go ahead, I'm ready for insults.
Code:<html> <head> <script> function securepass() { var alpha=new Array("","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") var combo=new Array('',16,1,19,19,23,15,18,4) var notCorrect=false for (i=1;i<=combo.length-1;i++) { inputH.value=inputH.value.substring(0,i)+alpha[combo[i]] if (input.value==inputH.value) {alert("Correct Password");notCorrect=false;input.value=''} else {notCorrect=true} } if (notCorrect==true) {alert("Invalid Password");inputH.value='';input.value=''} } </script> </head> <body> <input id="input"> <br><input type="button" value="Log In" onclick="securepass()"> <input id="inputH" style="display:none"> <br>Type in "password", and then try other combinations. </body> </html>




Reply With Quote

Bookmarks