日期:2013-07-27 浏览次数:20915 次
	  最后我们要做的任务,就是把每一页,或者你认为重要的关键的页面进行加密,就OK啦。怎样对网页的源代码进行加密就不用我多说了吧?网上四处都有,可以用工具,也可以本人写一个htm文件来转换。加密软件,我推荐“Batch HTML Encryptor”,去google找吧。还有转换加密网页的代码如下:
	
	〈HTML〉〈HEAD〉〈TITLE〉网页加密解密〈/TITLE〉
	〈META http-equiv=Content-Type content="text/html; charset=gb2312"〉
	〈META content="MSHTML 6.00.2600.0" name=GENERATOR〉〈!-- 大地软件任务室--〉〈LINK
	href="style.css" rel=stylesheet〉
	   〈META content="Microsoft FrontPage 4.0" name=GENERATOR〉
	〈/HEAD〉
	〈BODY bgColor=#ffffff leftMargin=0 topMargin=0 onload=initStyleElements()〉
	〈DIV
	style="LEFT: 139px; WIDTH: 106px; POSITION: absolute; TOP: 52px; HEIGHT: 36px"〉
	〈TABLE cellSpacing=0 cellPadding=0 width=760 align=center border=0〉〈!--DWLayoutTable--〉
	 〈TBODY〉
	 〈TR〉
	  〈TD vAlign=top align=middle width=760 height=310〉
	   〈DIV align=center〉
	   〈H2〉
	   〈SCRIPT language=JavaScript〉
	〈!--
	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='Compiling...Please wait!';
	setTimeout("compile()",1000);
	}
	else alert('First enter something to compile and then press CompileIt')
	}
	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++;
	if (i=1) alert("Page compiled 1 time!");
	else alert("Page compiled "+i+" times!");
	}
	function selectCode() /* Selecting "Compilation" for Copying */
	{
	if(document.pad.text.value.length〉0)
	{
	document.pad.text.focus();
	document.pad.text.select();
	}
	else alert('Nothing for be selected!')
	}
	function preview() /* Preview for the "Compilation" */
	{
	if(document.pad.text.value.length〉0)
	{
	pr=window.open("","