Code Seal

15 Apr

http://webdev.mtnpeak.net/

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”>
<HTML><HEAD>
<title>Code Seal</title>
<META content=”text/html; charset=windows-1252″ http-equiv=Content-Type>
<SCRIPT LANGUAGE=”JAVASCRIPT”>
<!–

function seal() {

var code = document.sealForm.txarea.value
var lineBreak = “”;

if (navigator.appName == “Netscape”) {lineBreak = “\n”}
else {lineBreak = “\r\n”;}

code = escape(code);

document.sealForm.txarea.value = “<HTML>” + lineBreak
document.sealForm.txarea.value += “<HEAD>” + lineBreak
document.sealForm.txarea.value += “<SCRIPT>” + lineBreak
document.sealForm.txarea.value += “<!–” + lineBreak

document.sealForm.txarea.value += “/************************************” + lineBreak
document.sealForm.txarea.value += “” + lineBreak
document.sealForm.txarea.value += “Code Seal v1.1” + lineBreak
document.sealForm.txarea.value += “by thepeak [www.mtnpeak.net]” + lineBreak

document.sealForm.txarea.value += “” + lineBreak
document.sealForm.txarea.value += “************************************/” + lineBreak
document.sealForm.txarea.value += “code = \”” + code

document.sealForm.txarea.value += “\” ” + lineBreak + “document.write(unescape(code))” + lineBreak

document.sealForm.txarea.value += “\/\/–\>” + lineBreak
document.sealForm.txarea.value += “</SCRIPT>” + lineBreak
document.sealForm.txarea.value += “</HEAD>” + lineBreak
document.sealForm.txarea.value += “</HTML>” + lineBreak
}

function CopytoClip(theField) {
var tempval=eval(“document.”+theField)
var copytoclip=1
tempval.focus()
tempval.select()
if (document.all&&copytoclip==1){
therange=tempval.createTextRange()
therange.execCommand(“Copy”)
window.status=”Your sealed code has been copied to the clipboard!”
setTimeout(“window.status=””,2800)}
}

//–>
</SCRIPT>
</HEAD>
<BODY>
<CENTER>
<H1>Code Seal</H1></CENTER>This small tool will convert your HTML source code to
a HTML "sealed" code only recognised by browsers and will prevent your HTML
source code to be viewed or stolen by
other people. Simply copy and paste the source code of your HTML file
below and click on “Seal Code”.  The new code generated will be your
new source code for your web page, and this new code will be less readable yet
equally reliable as the original code. <font size=”2″ color=”#FF0000″>Important:</font><font size=”2″>
You should always make a backup of the original HTML code before sealing your code
otherwise you will be unable to edit/change your webpage.</font><P><BR>
<CENTER>
<P>
<FORM name=sealForm><TEXTAREA cols=75 name=txarea rows=15 warp=”off”></TEXTAREA>
<BR><BR><INPUT onclick=seal() type=button value=”Seal Code” style=”border: 2px solid #000000″> <INPUT onclick=”javascript:CopytoClip(‘sealForm.txarea’)” type=button value=”Copy all text to clipboard” style=”border: 2px solid #000000″></FORM></CENTER></p>
<hr>
<table width=”100%”>
<tr><td align=”right”><a href=”http://www.mtnpeak.net”><i>Code Seal v1.1</i></a></td></tr>
</table>
</BODY></HTML>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: