[ale] HTML encryption?

Fulton Green ale at FultonGreen.com
Tue Oct 30 17:14:41 EST 2001


In the second block of script, prepend Decode() with
document.writeln("<!--") and append write(ky) with document.write(" -->") .
Render in the browser, then view source. Or will the dynamically gen'd stuff
show up? Seems like I may have converted this to a quickie Java app.

Konbanwa,
Fulton

On Wed, Oct 31, 2001 at 06:58:49AM +0900, Keith Hopkins wrote:
> 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

---
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