Here is a small script which can encrypt but cannot [B]decrypt
thanx
<html>
<script language=”JavaScript”><!–
i=0;
s=0;
num=0;
seq1=””,seq2=””;
ie = document.all?1:0;
ns = document.layers?1:0;
ns6 = document.getElementById?1:0;
svet = “”;
function generate(what)
{
code = document.pad.text;
if (code.value.length>0) code.value = “<script language=JavaScript>m='”+escape(code.value)+”‘;d=unescape(m);document.write(d);</script>”;
else if (code.value.length == “”)
{
alert(‘Hey PASTE the html before clicking that stuff’);
document.pad.text.focus();
}
}
function selectCode()
{
padText=document.pad.text;
if(padText.value.length>0)
{
if (ie)
{
therange=padText.createTextRange();
therange.execCommand(“Copy”);
window.status=”Encrypted HTML copied to Clipboard!”;
setTimeout(“window.status=””,1800);
}
padText.focus();
padText.select();
}
else alert(‘Please paste your HTML code into the box first…’)
}
function dothisfirst(what, message)
{
if (ie||ns6)
{
window.status=message;
what.style.backgroundColor=’#EAEAEA’;
what.style.cursor=’hand’;
}
else window.status=message;
}
function thendothis(what)
{
if (ie||ns6)
{
what.style.backgroundColor=’white’;
window.status=”;
}
else window.status=”;
}
// –></script>
</p><center>
<table border=”0″ width=”100%” cellspacing=”0″ cellpadding=”5″ style=”border-collapse: collapse” bordercolor=”#111111″>
<tr>
<td valign=”top” align=”left”>
<center><font size=”2″ color=”#008000″ face=”Arial”><i>
<b>Paste original HTML in the box:</b></i></font></center>
<form method=”post” name=”pad” align=”center”>
<table border=”0″ cellspacing=”0″ cellpadding=”0″ style=”border-collapse: collapse” bordercolor=”#111111″>
<tr>
<td width=”425″>
<textarea nowrap class=”box” rows=”15″ name=”text” cols=”77″ wrap></textarea></td>
</tr>
<tr>
<td width=”425″>
<br>
<div align=”center”>
<center>
<table border=”0″ width=”100%” cellspacing=”6″ cellpadding=”0″>
<tr>
<td width=”100%” align=”center”><input class=”but” type=”button” value=”Encrypt HTML” name=”compileIt” onClick=”generate()” onMouseOver=”dothisfirst(this, ‘Encrypt The HTML Code…’)” onMouseOut=”thendothis(this)”></td>
</tr>
<tr>
<td width=”100%” align=”center”><input class=”but” type=”button” value=”Place Encrypted HTML Code Onto The Clipboard” name=”select” onClick=”selectCode()” onMouseOver=”dothisfirst(this, ‘Select the encrypted code and copy it to the clipboard…’)” onMouseOut=”thendothis(this)”></td>
</tr>
<tr>
<td width=”100%” align=”center”><input class=”but” type=”reset” value=”Clear Box (Start Over)” name=”clear” onMouseOver=”dothisfirst(this, ‘Clear the code from the box above!’)” onMouseOut=”thendothis(this)”></td>
</tr>
</table>
</center>
</div>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</center>