extacy
Member
- Jan 6, 2011
- 106
- 2
so i originally made this in spanish for a spanish friend and i transformed it back into english
i just put this into a .html file and used it like that and forgot about it i dont have a use for it but what ever here you go:
i just put this into a .html file and used it like that and forgot about it i dont have a use for it but what ever here you go:
HTML:
<link type="text/css" rel="stylesheet" href="../data/style.css" />
</head>
<body>
<script language="JavaScript"> function doencrypt(theform) { if (theform.code.value == "") { alert; return false; } else { enctext=encrypt(theform.code.value); codetocopy="<Script Language='Javascript'>\n"; codetocopy+=""; codetocopy+="<!--\n"; codetocopy+="document.write(unescape('"+enctext+"'));\n"; codetocopy+="//-->\n"; codetocopy+="</Script\>"; theform.ecode.value=codetocopy; theform.sac.disabled = false; } return false; } function sandc(thisform) { thisform.ecode.focus(); thisform.ecode.select(); copytext=thisform.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<tx.length; i++) { hex += '%'+hexfromdec(tx.charCodeAt(i)) } return hex; } function hexfromdec(num) { if (num > 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" } } } </script>
<script type="text/javascript">
var visto = null;
function ver(num) {
obj = document.getElementById(num);
obj.style.display = (obj==visto) ? 'none' : 'block';
if (visto != null)
visto.style.display = 'none';
visto = (obj==visto) ? null : obj;
}
</script>
<div id="container">
<div id="top"></div>
<div id="mid">
<div style="text-align: center;" id="content">
<p><span style="font-family: Tahoma;"></span><br>
<br>
Block hackers or just have fun with an encripted coder!
<br>
</p>
<p align="center">
<font face="Arial">
<form name="pageform" onSubmit="return doencrypt(this);">
<div align="center" id="des" style="display: block"><textarea rows="6" name="code" cols="45" ></textarea><br>
<input type="submit" onClick="ver('enc')" onMouseUp="ver('des')" value="Encript Loader"></div><br>
<div align="center" id="enc" style="display: none"><textarea rows="6" cols="45" readonly name="ecode" class="toolbot" ></textarea><br>
<input type="button" value="Copy" onClick="sandc(pageform);" name="sac" disabled="true" ><input type="button" value="View original" onClick="ver('des')" onMouseUp="ver('enc')" ></div>
</form>
<br>
<br>
<div style="text-align: center;"></div>
</div>
</div>
<div id="bot"></div>
</div>
<p1>Credit extacy for making it </p1>
</body>
</html>