This tool will help you to encrypt and protect your html code.
";
document.frmencrypthtml.ecode.value=codetocopy;
//document.frmencrypthtml.copy_html.disabled = false;
return true;
}
}
function copy_this_html()
{
document.frmencrypthtml.ecode.focus();
document.frmencrypthtml.ecode.select();
copytext=document.frmencrypthtml.ecode.createTextRange();
copytext.execCommand("Copy");
alert("Copied the Encrypted HTML Code to clipboard, you may now paste this into your website");
}
function encrypt(tx)
{
var hex='';
var i;
for (i=0; i 65535)
{
return ("err!")
}
first = Math.round(num/4096 - .5);
temp1 = num - first * 4096;
second = Math.round(temp1/256 -.5);
temp2 = temp1 - second * 256;
third = Math.round(temp2/16 - .5);
fourth = temp2 - third * 16;
return (""+getletter(third)+getletter(fourth));
}
function getletter(num)
{
if (num < 10)
{
return num;
}
else
{
if (num == 10)
{
return "A"
}
if (num == 11)
{
return "B"
}
if (num == 12)
{
return "C"
}
if (num == 13)
{
return "D"
}
if (num == 14)
{
return "E"
}
if (num == 15)
{
return "F"
}
}
}