I just need an explanation about the code below from one of you JS experts. And, would anyone perhaps know what the password would be?
- Code: Select all
<script language=JavaScript>
var base= 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");
var key=new Array(3);
var i;
base.reverse();
for (i=0; i<= 3;++i)
{
key[i] = new Array(2);
}
key[0][0]=base[41];
key[0][1]=base[21];
key[1][0]=base[1];
key[1][1]=base[3];
key[2][0]=base[11];
key[2][1]=base[8];
key[3][0]=base[22];
pass=prompt("Please enter the Password: ","");
if (pass==key.join(",")){
window.location.href="index.php?pw="+pass;
}
</script>


