function TranslateAnswer(s, answerIndex)
{
var value;
var newString;
var code;
var i;
value = (answerIndex % 31) + 1;
newString = "";
for (i=0; i <>
code = parseInt(s.substring(i, i + 2), 16);
newString += String.fromCharCode(code ^ value);
}
return(newString);
}
for(i=0;i<=50;i++){
alert(i+1 +" = "+TranslateAnswer(ansMap[i],i));
}
//# http://www.squarefree.com/shell/shell.html
No comments:
Post a Comment