Hey, I've been trying to understand how certain javascript password protection scripts work! Right now I'm learning javascript so my knowledge of it isn't that good. heres a sample script:
<script>

var numletter="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"

function submitentry(){

verification=document.challenge.passwd.value

password = numletter.substring(11,12)
password = password + numletter.substring(18,19)
password = password + numletter.substring(23,24)
password = password + numletter.substring(16,17)
password = password + numletter.substring(24,25)
password = password + numletter.substring(1,4)

if(verification == password){
alert("thank you");
}else{
alert("invalid password!");
}

}
</script>
Heres what I have been able to come up with. The password,of course, gets its info from var numletter= and then picks the numbers/letters from this by using the given coordinates and keeps doing this and adding up the coordinates until the password is complete. am I right? I got abhimn03 but that doesn't work. Yes this is from a test site but I wan to know how it works. and please don't give me the password! thanx!