[ale] HTML encryption?

Keith Hopkins hne at inetnow.net
Tue Oct 30 16:58:49 EST 2001


I found an interesting piece of javascript out on a web page, it looks like this.

<script language="JavaScript"><!--
ky="";function d(msg){ky=ky+codeIt(key,msg);}var key = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz<>]#\"";function codeIt (mC, eS) {var wTG, mcH =  mC.length / 2, nS = "", dv;for (var x = 0; x < eS.length; x++) {wTG = mC.indexOf(eS.charAt(x));if (wTG > mcH) {dv = wTG - mcH;nS = nS + mC.charAt(33 - dv);}else {if (key.indexOf(eS.charAt(x)) < 0) {nS = nS + eS.charAt(x)}else {dv = mcH - wTG;nS = nS + mC.charAt(33 + dv);}}}return nS;}
//--></script>
<script language="JavaScript"><!--
Decode();document.write(ky);//--></script>

It was preceeded by another javascript script containing the Decode, which was a very long piece of gar-bage.  I'm guessing this is a way to encrypt html from MOST prying eyes, so, how can I see what it is really doing?

Lost in Tokyo,
   Keith

-- 
What did the skeleton say to the bartender?
I'll have two beers and a mop...



---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list