asp加密解密程序

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0030)http://918.cn.gs/net/jiemi.htm -->
<HTML><HEAD><TITLE>网页加密解密</TITLE>
<SCRIPT language=javascript>
if(self!=top){top.location=self.location;}
</SCRIPT>

<STYLE type=text/css>BODY {
COLOR: #c0c0c0; font-face: 宋体
}
TD {
FONT-SIZE: 10pt
}
A:link {
COLOR: #c0c0c0; TEXT-DECORATION: none
}
A:visited {
COLOR: #c0c0c0; TEXT-DECORATION: none
}
A:hover {
COLOR: #888888; TEXT-DECORATION: none
}
</STYLE>

<META http-equiv=Content-Type content="text/html; charset=gb2312">
<SCRIPT language=javascript>
<!-- Begin
function viewSource() {
document.getSource.view.value="读取中...";
setTimeout("document.getSource.view.value='查看'",6000);
window.location.href= "view-source:" + document.getSource.url.value;
return false;
}
// End -->
</SCRIPT>

<META content="MSHTML 6.00.2462.0" name=GENERATOR></HEAD>
<BODY oncontextmenu=self.event.returnValue=false bgColor=#444444>
<CENTER>
<FORM name=getSource onsubmit="return viewSource();"><FONT size=2>在下面输入网址查看源文件
</FONT><BR><INPUT value=http:// name=url><BR><INPUT type=submit value=查看 name=view> </FORM>
<SCRIPT language=JavaScript>
<!--
var i=0;
var ie=(document.all)?1:0;
var ns=(document.layers)?1:0;

function initStyleElements()
{
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;
}


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

function generate()
{
code = document.pad.text.value;
if (code)
{
document.pad.text.value='正在加密 请稍等.......';
setTimeout("compile()",1000);
}
else alert('请先把要加密的代码复制到此框中')
}
function compile()
{
document.pad.text.value='';
compilation=escape(code);
document.pad.text.value="<script>/n<!--/ndocument.write(unescape(/""+compilation+"/"));/n//-->/n<//script>";
i++;
if (i=1) alert("代码已编译1次!");
else alert("代码已编译"+i+"次!");
}
function selectCode()
{
if(document.pad.text.value.length>0)
{
document.pad.text.focus();
document.pad.text.select();
}
else alert('无任何内容被选中!')
}
function preview()
{
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()
{
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 align=middle>将要加密或解密的代码复制到下面文本框 </TD></TR>
<TR>
    <TD width="100%">
      <FORM name=pad method=post align="center">
      <DIV align=center><TEXTAREA style="WIDTH: 95%; BACKGROUND-COLOR: #ebebeb" name=text rows=20 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>
      </DIV></FORM></TD></TR></TBODY></TABLE></CENTER></BODY></HTML>

阅读更多
个人分类: ASP/PHP
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭