Here is a short example of a Web page that includes some JScript code that needs protecting:
Example
Here's the same page as it appears after being run through the Script Encoder:
Copy Code | |
---|---|
<HTML> <HEAD> <TITLE>Script Encoder Sample Page</TITLE> <SCRIPT LANGUAGE="JScript.Encode"> <!--// //Copyright© 1998 Microsoft Corporation. All Rights Reserved. //**Start Encode**#@~^QwIAAA==@#@&0;mDkWP7nDb0zZKD.n1YAMGhk+Dvb`@#@&P,kW`UC7kLlDGDcl22gl:n~{'~Jtr1DGkW6YP&xDnD+OPA62sKD+ME#@#@&P,~~k6PvxC\rLmYGDcCwa.n.kkWU bx[+X66Pcr*cJ#,@*{~!*P~P,P~._YEMU`DDE_bIP,P,+s/n@#@&P~P,~PM+O;Mx`WC^/n#pN6EU1YbWx,o_Obaw.WaDrCD+nmL+v#@#@&~P7lMPdY.q,'~J_CN,Y4rkP4nnPCx,C1Y;mV,_+(PkrY_~~l,wCL_PmKhwmYk(snPSkDt~JI@#@&P~\m.PkY.+,'PE8MWA/_.kPGDt_DPDtmUPri@#@&,P-CMP/D.&,'Pr\rmMWkWWY~(YnDnY,2a2^WDn.,* !,Ep@#@&,P7lD,/D.c,'~JSW;s9Ptm-+,4+_U~VKl9+[REI,Pr0,c\_DrWHZW.._mOAMGS/nM`*#@#@&P,~P9W^Es+UOchDbO+v/YMq~_,/DDfPQ~kY.c*IP,+sd_@#@&~~,P[W1;s+UDRSDkD+vdYMF~_,/O.yP_,dYM&P3~dYMc*iNz&R @*^#~@ //--> </SCRIPT> </HEAD> <BODY onload="getAppropriatePage()"> </BODY> </HTML> |
Note |
---|
After encoding, if you change even one character in the encoded text, the integrity of the entire script is lost and it can no longer be used. |
See Also