yes i understood that but why encrypt is not the opposite of decrypt?
I understand that is the oposite beetween client and server but i don't understand that encrypt isn't the oposite of decrypt...
ok thanks i was comparing bad^^.
I try to make a c# emulator...
when i use my encrypt fonction with this string "Hi!" the return is : 8712048 is it good?
it's for the socket.send i thinks the good function is :
std::string c_Cryptography::Encrypt(std::string tmp)
{
std::string enc_str;
for (unsigned int i = 0; i < tmp.size(); i++) { enc_str += tmp[i] + 0xF; }
return enc_str += 0x19;
}
am i right?
I know i converted but i'm note sure it's good^^ i just want to know if your function with "Hi!" in argument return : 8712048 if it's good my function is good too.
this is my function :
public static byte[] encrypter(string packet)
{
string enc_str = string.Empty;
byte[] test = new byte[packet.Length];
int i;
for (i = 0; i < packet.Length; i++)
{
enc_str += (char)(packet[(int)i] + 15);
test[i] = Convert.ToByte((char)enc_str[(int)i]);
}
return test;
this is my function :
public static byte[] encrypter(string packet)
{
string enc_str = string.Empty;
byte[] test = new byte[packet.Length];
int i;
for (i = 0; i < packet.Length; i++)
{
enc_str += (char)(packet[(int)i] + 15);
test[i] = Convert.ToByte((char)enc_str[(int)i]);
}
return test;
}
Much code lol, try this...
Code:
public satic byte[] Encrypt(string packet)
{
byte[] ret = new byte[packet.Lenght];
for(int i = 0; i < packet.Lenght; i++){ret[i] = (int)packet[i] + 0xF;}
return ret;
}
thanks ;D i was forgotten : tmp[tmp.Length-1] = 25; and know it's better^^
Sorry for my bad english(i'm french)
PS: there is an error in your function encrypt : Convert.ToByte(str[i] + 15)
if(str[i] > 112)
=> 112+15 = 127
and a byte is a number beetween 0 and 127
the encrypt system don't work for pqrstuvwxyz
^^ i will try to fix tomorrow and i will post my fix.
this is my unencryptor :
Code:
public static string unencrypter(byte[] packet, int bytes)
{
string dec = string.Empty;
char[] chars = new char[bytes];
int test = 0;
for (int i = 0; i < bytes; i++)
{
chars[(int)i] = (char)(packet[(int)i]);
test = (((int)chars[i] - 15) ^ 195);
if (test < 0) test = (test % 256) + 256;
dec += (char)test;
}
return dec;
}
Auth Cryptography 02/01/2013 - CO2 Private Server - 3 Replies i Wonder if the Auth Cryptography has changed at patch 5698 cuz i couldnt login into My Pserver ... after checking PasswordSeed (1059) & Login (1052) & Auth Response (1055) .. none of them has changed
Regards
Shadowman123
Game Cryptography ?? 09/22/2012 - CO2 Programming - 0 Replies Hello :)
coders
my project (Proxy bot) i need help to Update The encryption
auth crypto is working but the problem in game crypto
i tried 2 proxy's encryption and it stuck when logging in game server
help ?
currently proxy is works 100% but doesnt give the right packets
thanks.
edit : im not sure maybe the auth encryption are also does not decrypt correctly
Help with cryptography 05/16/2012 - CO2 Programming - 10 Replies Hello ppl, so ive been learning general hacking methods for quite a decent while now, first i started out with small things such as memory hacks and then i started learning even more which led me to packet sniffing and that led me to the idea of fiddling around with conquer. Now that ive had a chance to play around with it i decided to hook the connect function of the game and i was successful at doing so, i also managed to get the client to connect to my socket first rather than connect to the...
Password Cryptography 03/03/2011 - CO2 Private Server - 13 Replies #Problem solved
Thank You everybody, I Appreciate this.
Client Server Cryptography? 07/14/2009 - Archlord - 7 Replies i was wondering, the communication between alefcient and the game server is encrypted, and alefclient binary seems to use Cryptography API (CNG) with most of its functions like:
BCryptCloseAlgorithmProvider
BCryptCreateHash
BCryptDecrypt
BCryptDeriveKey
BCryptDestroyHash
BCryptDestroyKey
BCryptDestroySecret
BCryptDuplicateHash