Hi guys,
did reverse all the packets encryption stuff.
i someone intrested contact me . (coderz only)
did reverse all the packets encryption stuff.
i someone intrested contact me . (coderz only)
public class ServerCipher : CipherBase
{
override public int Decrypt(byte[] data, out byte[] buf)
{
if (!inGameEncryption)
{
buf = new byte[data.Length];
for (int i = 0; i < data.Length; i++)
buf[i] = (byte)(data[i] - 0x0F);
return data.Length;
}
int len = data.Length;
int offset = 0;
char[] table = { (char)0, ' ', '-', '.', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '\n' };
........
return 0;
}
}
Quote:
Auth Packets are not my problem :D
Just the recieve game packets. Bytes of Number Chars are fucked up.
But Thanks.
char[] table = { (char)0, ' ', '-', '.', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '\n' };
HEllo,Quote:
should give you and idea on how to restore numbers.Code:char[] table = { (char)0, ' ', '-', '.', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '\n' };
it's more a string compression than an encryption