I was wondering if anyone could help me interpert or understand what this javascript piece of code actually does:
[CODE]<p>
Retrieve the html and follow the instructions <br />
<form name=”sec”>
<input style=”border: none; color: red; font-weight: bold” type=”text” id=”texti” onChange=”show();” />
</form> <br />
<div id=”texta”></div>
<br />
Hint: you are just one byte away
</p>
<script language=”javascript” type=”text/javascript”>
show();
function show() {
var v = [0x14e, 0x167, 0x11f, 0x173, 0x167, 0x168, 0x172, 0x11f, 0x176, 0x160, 0x172, 0x11f, 0x160, 0x16b, 0x16b, 0x11f, 0x175, 0x164, 0x171, 0x178, 0x11f, 0x168, 0x16d, 0x173, 0x164, 0x171, 0x164, 0x172, 0x173, 0x168, 0x16d, 0x166, 0x12b, 0x11f, 0x173, 0x167, 0x164, 0x11f, 0x16f, 0x160, 0x172, 0x172, 0x176, 0x16e, 0x171, 0x163, 0x11f, 0x168, 0x172, 0x11f, 0x172, 0x16e, 0x16c, 0x164, 0x173, 0x167, 0x168, 0x16d, 0x166, 0x11f, 0x178, 0x16e, 0x174, 0x11f, 0x160, 0x171, 0x164, 0x11f, 0x16f, 0x171, 0x16e, 0x161, 0x160, 0x161, 0x16b, 0x178, 0x11f, 0x16b, 0x16e, 0x16e, 0x16a, 0x168, 0x16d, 0x166, 0x11f, 0x165, 0x16e, 0x171, 0x11f, 0x160, 0x16d, 0x163, 0x11f, 0x168, 0x173, 0x11f, 0x168, 0x172, 0x11f, 0x167, 0x164, 0x171, 0x164, 0x11f, 0x161, 0x164, 0x173, 0x176, 0x164, 0x164, 0x16d, 0x11f, 0x173, 0x167, 0x164, 0x172, 0x164, 0x11f, 0x15a, 0x13b, 0x120, 0x12c, 0x12c, 0x11f, 0x173, 0x167, 0x164, 0x11f, 0x16f, 0x160, 0x172, 0x172, 0x176, 0x16e, 0x171, 0x163, 0x11f, 0x168, 0x172, 0x11f, 0x168, 0x172, 0x164, 0x164, 0x132, 0x165, 0x160, 0x173, 0x16f, 0x164, 0x16e, 0x16f, 0x16b, 0x164, 0x16e, 0x16d, 0x160, 0x161, 0x164, 0x16d, 0x162, 0x167, 0x11f, 0x12c, 0x12c, 0x13d, 0x15c, 0x11f, 0x161, 0x171, 0x160, 0x162, 0x16a, 0x164, 0x173, 0x172, 0x12b, 0x11f, 0x168, 0x16d, 0x11f, 0x160, 0x11f, 0x167, 0x173, 0x16c, 0x16b, 0x11f, 0x162, 0x16e, 0x16c, 0x16c, 0x164, 0x16d, 0x173, 0x11f, 0x173, 0x160, 0x166, 0x12d];
var t = “”;
var n = parseInt(document.sec.texti.value);
if(!isNaN(n)) {
for(var i = 0; i < v.length; i++) {
t += String.fromCharCode(v[i]-n);
}
}
document.getElementById(“texta”).innerHTML = t;
I would be really thankfull, thanks ?