程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 網頁編程 >> ASP編程 >> ASP技巧 >> 加密頁面代碼生成器

加密頁面代碼生成器

編輯:ASP技巧

<!DOCTYPE HTML PUBLIC "-//W3C//DTD Html 4.0 Transitional//EN">
<!-- saved from url=(0032)http://www.IE-zone.com/index.PHP -->
<Html>
<!-- #BeginTemplate "/Templates/JS.dwt" -->
<HEAD>
<!-- #BeginEditable "doctitle" -->
<TITLE>加密頁面代碼生成器 </TITLE>
<!-- #EndEditable -->
<META http-equiv=Content-Type content="text/Html; charset=gb2312">
<LINK
href="/fav.ico" rel="shortcut icon">
<STYLE type=text/CSS>BODY {
MARGIN: 25px 25px 25px
}
#all TD {
FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋體", "宋體"
}
INPUT {
FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋體", "宋體"
}
SELECT {
FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋體", "宋體"
}
P {
FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋體", "宋體"
}
TEXTAREA {
FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋體", "宋體"
}

#all A:active {
COLOR: #7d070c
}
#all A:visited {
COLOR: #7d070c
}

#all A:hover {
COLOR: #336699
}
#all A:link {
COLOR: #7d070c
}
</STYLE>
<SCRipT language=JavaScript>
<!--

function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function JM_cc(ob){
var obj=MM_findObj(ob); if (obj) {
obj.select();js=obj.createTextRange();JS.execCommand("Copy");}
}

function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}
//-->
</SCRIPT>
<META content="MSHtml 5.50.4134.600" name=GENERATOR>
</HEAD>
<BODY id=all text=#000000 bgColor=#336699>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TR bgColor=#ffffff>
  <TD><IMG src="/images/sq_1.gif" width=11 height="14"></TD>
  <TD width="100%"></TD>
  <TD><IMG src="/images/sq_2.gif"
width=11 height="14"></TD>
</TR>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TR bgColor=#ffffff>
  <TD><IMG src="/images/space.gif" width=11 height="1"></TD>
  <TD width="100%">
   <table width="100%" border="0" cellpadding="8">
    <tr>
     <td align="center">
      <script language="Javascript">
document.write("<font color=#7d070c style=\"font-size: 14px\">"+document.title+"</font>");
</script>
     </td>
    </tr>
    <tr>
     <td bgcolor="#f7f7f7"><!-- #BeginEditable "example" --><font face="Verdana">提示:</font>
      把你想加密的文檔的源代碼拷貝到下面的文本框內,按下生成按鈕就可以得到一段加密了的頁面代碼,把代碼復制到新的頁面就可以了. [注意:可重復加密啊!]
      <script language=JavaScript>
<!--
//////////////////////////////////////////////////////////////////
//           Source Code Encrypter v1.0       //
//////////////////////////////////////////////////////////////////
//                               //
// This JavaScript can be freely used as long as this message //
// stays here in the header of the script. Any modifications  //
// and bugs found (and fixed) are apPReciated.         //
// Script submitted/featured on Dynamicdrive.com        //
// Visit http://www.dynamicdrive.com for source code      //
//     Svetlin Staev, [email protected]     //
//////////////////////////////////////////////////////////////////

var i=0;
var IE=(document.all)?1:0;
var ns=(document.layers)?1:0;

function initStyleElements() /* Styles for Buttons Init */
{
var c = document.pad;
if (IE)
{
//c.text.style.backgroundColor="#DDDDDD";
c.compileIt.style.backgroundColor="#C0C0A8";
c.compileIt.style.cursor="hand";
c.select.style.backgroundColor="#C0C0A8";
c.select.style.cursor="hand";
c.vIEw.style.backgroundColor="#C0C0A8";
c.vIEw.style.cursor="hand";
c.retur.style.backgroundColor="#C0C0A8";
c.retur.style.cursor="hand";
c.clear.style.backgroundColor="#C0C0A8";
c.clear.style.cursor="hand";
}
else return;
}

/* Buttons Enlightment of "Compilation" panel */
function LightOn(what)
{
if (IE) what.style.backgroundColor = '#E0E0D0';
else return;
}
function FocusOn(what)
{
if (IE) what.style.backgroundColor = '#EBEBEB';
else return;
}
function LightOut(what)
{
if (IE) what.style.backgroundColor = '#C0C0A8';
else return;
}
function FocusOff(what)
{
if (IE) what.style.backgroundColor = '#DDDDDD';
else return;
}
/* Buttons Enlightment of "Compilation" panel */

function generate() /* Generation of "Compilation" */
{
code = document.pad.text.value;
if (code)
{
document.pad.text.value='正在生成加密代碼,請稍後!';
setTimeout("compile()",1000);
}
else alert('請輸入源文件代碼')
}
function compile() /* The "Compilation" */
{
document.pad.text.value='';
compilation=escape(code);
document.pad.text.value="<script>\n<!--\ndocument.write(unescape(\""+compilation+"\"));\n//-->\n<\/script>";
i++;
alert("頁面被加密了 "+i+" 次!");
}
function selectCode() /* Selecting "Compilation" for Copying */
{
if(document.pad.text.value.length>0)
{
document.pad.text.focus();
document.pad.text.select();
}
else alert('沒有可以選擇的文本內容!')
}
function preview() /* PrevIEw for the "Compilation" */
{
if(document.pad.text.value.length>0)
{
pr=window.open("","PrevIEw","scrollbars=1,menubar=1,status=1,width=700,height=320,left=50,top=110");
pr.document.write(document.pad.text.value);
}
else alert('沒有可以預浏覽的文本內容!')
}
function uncompile() /* Decompiling a "Compilation" */
{
if (document.pad.text.value.length>0)
{
source=unescape(document.pad.text.value);
document.pad.text.value=""+source+"";
}
else alert('你需要生成被加密的代碼後才能取回源代碼!')
}
// -->
</script>
      <table cellspacing=0 cellpadding=0 width="100%" border=0>
       <tbody>
       <tr>
        <td width="100%">
         <form name=pad method=post align="center">
          <textarea name=text rows=21 cols=58></textarea>
          <br>
          <input onMouSEOver=LightOn(this) onClick=generate() onMouSEOut=LightOut(this) type=button value=加密代碼 name=compileIt>
          <input onMouseOver=LightOn(this) onClick=selectCode() onMouSEOut=LightOut(this) type=button value=全選代碼 name=select>
          <input onMouseOver=LightOn(this) onClick=prevIEw() onMouSEOut=LightOut(this) type=button value=預浏覽頁面 name=vIEw>
          <input onMouseOver=LightOn(this) onClick=uncompile() onMouSEOut=LightOut(this) type=button value=原代碼 name=retur>
          <input onMouseOver=LightOn(this) onMouSEOut=LightOut(this) type=reset value=清空 name=clear>
         </form>
         
        </td>
       </tr>
       </tbody>
      </table>
      <!-- #EndEditable --></td>
    </tr>
    <tr>
     <td><!-- #BeginEditable "code" --><br>
      <form name="form1" method="post" action="">
      </form>
      <!-- #EndEditable --></td>
    </tr>
   </table>
  </TD>
  <TD><IMG src="/images/space.gif"
width=11 height="1"></TD>
</TR>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TR bgColor=#ffffff>
  <TD><IMG src="/images/sq_3.gif" width=11 height="14"></TD>
  <TD width="100%"></TD>
  <TD><IMG src="/images/sq_4.gif"
width=11 height="14"></TD>
</TR>
</TABLE>
</BODY>
<!-- #EndTemplate -->
</Html>

 

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved