Either release it or don't release it. Don't post crap in the releases section unless it's a release.
ktnxbai
This is a discussion on R63 Crypto In java within the Habbo Releases forums, part of the Habbo Hotel category; PHP Code: /* ***************** * @author capos * ***************** */ public final class HabboRC4 { private int i = 0 ; private int j = 0 ...

PHP Code:/*
*****************
* @author capos *
*****************
*/
public final class HabboRC4
{
private int i = 0;
private int j = 0;
private int[] Table;
public void HabboRC4()
{
this.Table = new int[256];
}
private void Swamp(int arg1, int arg2)
{
int k = this.Table[arg1];
this.Table[arg1] = this.Table[arg2];
this.Table[arg2] = k;
}
public void init(byte[] arg1)
{
int k = arg1.length;
this.i = 0;
while (this.i < 256)
{
this.Table[this.i] = this.i;
this.i++;
}
this.j = 0;
this.i = 0;
while (this.i < 0x0100)
{
this.j = (((this.j + this.Table[this.i]) + arg1[(this.i % k)]) % 256);
this.Swamp(this.i, this.j);
this.i++;
}
this.i = 0;
this.j = 0;
}
private byte[] encipher(byte[] arg1)
{
int k1;
byte[] k = null;
int pos = 0;
for(int a = 0;a<arg1.length;a++)
{
this.i = ((this.i + 1) % 256);
this.j = ((this.j + this.Table[this.i]) % 256);
this.Swamp(this.i, this.j);
k1 = ((this.Table[this.i] + this.Table[this.j]) % 256);
k[pos++] = (byte) (this.Table[k1] ^ arg1[a]);
}
return (k);
}
public byte[] decipher(byte[] arg1)
{
int k1;
byte[] k = null;
int pos = 0;
for(int a = 0;a<arg1.length;a++)
{
this.i = ((this.i + 1) % 256);
this.j = ((this.j + this.Table[this.i]) % 256);
this.Swamp(this.i, this.j);
k1 = ((this.Table[this.i] + this.Table[this.j]) % 256);
k[pos++] = (byte) ((arg1[a] ^ this.Table[k1]));
}
return (k);
}
}
Last edited by Makarov; 10-02-12 at 11:30 PM.
Either release it or don't release it. Don't post crap in the releases section unless it's a release.
ktnxbai
Say thanks to capostrike :d
capostrike93 - Pastebin.com
Posted via Mobile Device
It's not yours, it's old, and most of all it's pointless. Most, if not all java habbo devs have this already.
Ok, not really helpful.