stuzer05 revised this gist . Go to revision
1 file changed, 9 insertions
script.js(file created)
@@ -0,0 +1,9 @@ | |||
1 | + | function heidiDecode(hex) { | |
2 | + | var str = ''; | |
3 | + | var shift = parseInt(hex.substr(-1)); | |
4 | + | hex = hex.substr(0, hex.length - 1); | |
5 | + | for (var i = 0; i < hex.length; i += 2) | |
6 | + | str += String.fromCharCode(parseInt(hex.substr(i, 2), 16) - shift); | |
7 | + | return str; | |
8 | + | } | |
9 | + | document.write(heidiDecode('755A5A585C3D8141786B3C385E3A393')); |
Newer
Older