<html xmlns="
" class=""><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script language="JavaScript">
var symbols = " !\"#$%&'()*+'-./0123456789:;<=>?@";
function toAscii (xx)
{
var loAZ = "abcdefghijklmnopqrstuvwxyz";
symbols+= loAZ.toUpperCase();
symbols+= "[\\]^_`";
symbols+= loAZ;
symbols+= "{|}~";
var loc;
loc = symbols.indexOf(xx);
if (loc >-1)
{
Ascii_Decimal = 32 + loc;
return (32 + loc);
}
return(0); // If not in range 32-126 return ZERO
}
function Dec2Hex(Decimal)
{
var hexChars = "0123456789ABCDEF";
var a = Decimal % 16;
var b = (Decimal - a)/16;
hex = "" + hexChars.charAt(b) + hexChars.charAt(a);
L = hexChars.charAt(a);
H = hexChars.charAt(b);
return hex;
}
function randByte() { return Math.floor(Math.random()*256%256); }
function blub(form)
{
s1 = form.inp.value;
xvaluestart = randByte();
xrefkill = "0x" + Dec2Hex(randByte()) + Dec2Hex(randByte()) + Dec2Hex(randByte()) + Dec2Hex(randByte());
finallen = s1.length+1;
hexsequence = '"';
xvalue = xvaluestart;
for(i=0;i<s1.length;i++)
{
ch = s1.substr(i,1);
var chval;
if(ch=="\\"){
i++;
ch = s1.substr(i,1);
if(ch=="0") { chval = 0; }
else if(ch=="n") { chval = 10; }
else if(ch=="\\") { chval = toAscii("\\"); }
else if(ch=="r") { chval = 13; }
else { javascript:alert("invalid control sequence: \\"+ch); }
--finallen;
}
else if(ch=="|"){
chval=0;
}
else {
chval = toAscii(ch);
if(chval==0) { form.ans.value = "invalid character: "+ch; return; }
}
chval ^=xvalue;
xvalue += 1;
xvalue %= 256;
hexsequence += "\\x"+ Dec2Hex(chval);
}
hexsequence += '"';
s2 = "/*"+s1+"*/XorStr<0x" + Dec2Hex(xvaluestart) + "," + finallen + ","+xrefkill+'>('
s2 += hexsequence + "+" + xrefkill + ").s";
form.ans.value = s2;
form.ans.focus();
form.ans.select();
}
</script>
<link rel="shortcut icon" href="
">
<title>XorStr Şifreleyici</title>
</head>
<body bgcolor="white">
<div style="display:block!important;width:100%!important;z-index:2147483647!important;margin:0 auto!important;align:center;">
<form name="formx">
<center>
<br>
<center>
<font color="#CC0000">XorStr Şifreleyici</font>
</center>
<br>
<center>
<a>Şifrelenecek veri :</a>
</center>
<center>
<input name="inp" size="20" value="">
</center>
<br>
<center>
<input onclick="blub(this.form)" value="Sifrele" type="button">
</center>
<br>
<center>
<a>XorStr ile Şifrelenen Veri :</a>
</center>
<center>
<input name="ans" size="150" ?number="" value="">
</center>
</center>
</form>
</div>
</body></html>