[ale] HTML encryption?
Master Wizard
mainwizard at vei.net
Tue Oct 30 20:12:18 EST 2001
This looks very much like base64 encoding. I had to write one for storing encryption keys in a database. Because the key can contain non-printing (and thus non-storable) values, it must first be encoded. Then you decode it to use it. This may not be base64, but it is very similar.
Ed
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
>
> --
> 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.
---
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