LZ可以用这个HTML代码进行加密、解密。。
- <!--
- 提供商业服务(配置环境、安装论坛、风格、插件、简单的PHP开发)
-
- QQ:184022241
- -->
- <head>
- <title>网页在线加密解密</title>
- <script language=Javascript>
- <!--
- var words;
- function setwords(word)
- {
- words = word.value;
- }
- function Setnewwords(form)
- {
- var newwords;
- newwords = unescape(words);
- form.newwords.value = newwords;
- }
- function Setnewwords1(form)
- {
- var newwords;
- newwords = escape(words);
- form.newwords.value = newwords;
- }
- // -->
- </script>
- <style type="text/css">
- <!--
- .style1 {color: #FF0000}
- -->
- </style>
- </head>
- <body>
- <table cellSpacing=0 cellpadding=0 width=778 align=center border=0>
- <tbody>
- <tr>
- <td>
- <table cellSpacing=0 cellpadding=0 align=center
- border=1>
- <tbody>
- <tr>
- <form method=post>
- <td>
- <p> </p>
- <p align="center"><b>网页在线加密解密</b></p>
- 所谓加密解密是通过Unicode码的转换实现的,但经过实验中文文字太多会导致将你的页面代码膨胀.英文反会有压缩效果.
- <p />
- <b>请您注意:<span class="style1">请在加密前先备份您的网页.</span></b>
- <p />
- <b>使用方法</b>:<p />
- <b>加密方法一</b>:把需要加密的源代码粘贴在下面的框内,要包括所有的标签例如html , head,
- body,等.如果对Java熟识,也可只对 部分内容加密,在对应输出部分使用outword()即可.
- <p />
- <b>解密方法</b>:将引号内的乱码贴入按解密即可.
- <p />
-
- <div align=center>
- <textarea name=word rows=10 cols=65 onchange=setwords(this)>按Ctrl+A可全选;
- 按Ctrl+C可加入剪贴板;
- 按Ctrl+V可剪贴板拷贝;
- 也可单击鼠标右键.</textarea></div>
- <div align=center>
- <p><input onclick=Setnewwords(this.form) type=button value=解密 name=uncode>
- <input onclick=Setnewwords1(this.form) type=button value=加密 name=encode>
- </p></div>
- <div align=center>
-
- <p><textarea name=newwords rows=10 cols=65></textarea>
- </p></div>
- </form>
- <p> 以上是转换好的代码,将他们加入如下脚本的引号""区内, 就是加密后的html了!以下代码不可直接拷入Frontpage可先贴在记事本中,再copy一次然后粘贴就没问题了.
- </p>
- <div align=center>
-
- <table width="65%" align=center border=1>
- <tbody>
- <tr>
- <td height=314><p align=left><b><html><br><head><br><script
- LANGUAGE="Javascript"><br><!--<br>var words ="把加密生成后的代码复到此处就OK了"
- //put your cripto code there<br>function Outword()<br>{<br>var
- newwords;<br>newwords = unescape(words);<br>
- document.write(newwords);<br>}
- <br>Outword();<br>// --><br></script><br></head><br><body><br>
- </body><br></html></b><p></td></tr></tbody></table></div>
- <tr>
- <td height=41>
- <p />
- <p><b>加密方法二</b>:将要处理的html文档的源代码复制到下面的文本框内,根据需要进行加密解密操作:(请先阅读后面的使用说明部
- 分)
- <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.backgroubdcolor="#DDDDDD";
- c.compileIt.style.backgroubdcolor="#C0C0A8";
- c.compileIt.style.cursor="hand";
- c.select.style.backgroubdcolor="#C0C0A8";
- c.select.style.cursor="hand";
- c.view.style.backgroubdcolor="#C0C0A8";
- c.view.style.cursor="hand";
- c.retur.style.backgroubdcolor="#C0C0A8";
- c.retur.style.cursor="hand";
- c.clear.style.backgroubdcolor="#C0C0A8";
- c.clear.style.cursor="hand";
- }
- else return;
- }
- function LightOn(what)
- {
- if (ie) what.style.backgroubdcolor = '#9ab6c4';
- else return;
- }
- function LightOut(what)
- {
- if (ie) what.style.backgroubdcolor = '#96a096';
- else return;
- }
- function generate()
- {
- code = document.pad.text.value;
- if (code)
- {
- document.pad.text.value='\n\n\n 正在加密代码,请稍后\n\n …………………………';
- setTimeout("compile()",1000);
- }
- else alert('似乎忘了输入源文件的html代码!!!')
- }
- 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("此次操作对html代码加密了 "+i+" 次!");
- }
- function unpass()
- {
- if(document.pad.text.value.length>0){
- code = document.pad.text.value;
- alert("注意:\n 解密完成后记得去掉多余的部分:\n\n<script>\n<!--\ndocument.write(unescape("\n\n------只要此内html代码------\n\n"\)\)\;\n//-->\n<\/script>\n\n可以多次解密到显示标准的html代码!");
- document.pad.text.value=unescape(code);
- }
- else alert('这样的空代码还要我来解吗!?')
- }
- 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=500,height=350,left=100,top=100");
- 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>
- </p>
- <table cellSpacing=0 cellpadding=0 width="100%" border=0>
- <tbody>
- <tr>
- <td width="100%">
- <form name=pad method=post ><textarea style="border-RIGHT: 1px double; border-TOp: 1px double;
- font-SIZE: 9pt; border-left: 1px double; width: 100%; color: #555566; border-bottom: 1px double; " name=text rows=15 cols=30></textarea>
- <p align="center"><input onclick=generate() type=button value=加密代码 name=compileIt>
- <input onclick=selectCode() type=button value=全选代码 name=select>
- <input onclick=unpass() type=button value=解密代码 name=unpas>
- <input onclick=preview() type=button value=预览代码 name=view>
- <input type=reset value=清空代码 name=clear>
- </form></p>
- <b>使用说明</b>:<p />
- <b>加密</b>:把你想加密的html文档的源代码复制到上面的文本框内,加密后再把代码复制到新的页面就可以了.(可以进行多次加密)<p />
- <b>解密</b>:把你想解密的已加密html的文档的源代码复制到下面的文本框内,点击解密按钮至代码出现标准html代码时根据提示获取源码.对于多次解密都未发生改变的代码本系统将无法解密.<p />
- <b>注明</b>:本系统加密的代码在本系统是可以进行解密的,对于html加密代码中带有document.write(unescape("…………"))引用的,加密代码本系统亦可以解密.<p />
- <b>各种html加密代码都适用的解密方法</b>:<br />
- 不管你遇到的加密代码是用何种方法加密的,只要能正常浏览的便可以进行解密:打开此页面,在浏览器中按下Ctrl+A(全选),再按下Ctrl+C(复制),打开Forntpage在[普通]方式下按下Ctrl+V(粘贴),然后切换到[html代码]方式下看到的代码便是未加密的代码!<br></td></tr></tbody></table>
- </td></tr></tbody></table>
- </body></html>
复制代码 |
|