considering my program is just for test so am not using packets
here is the code i made
Code:
Auth_Setup();
CAuthCryptography Dec;
AuthProtocolCryptographer dec;
Print("Socket Connected -> %s",inet_ntoa(addr.sin_addr));
char rSeed[9];
RandSeed(rSeed);
send(sListen,rSeed,8,0);
char buf[1096];
int buflen=strlen(buf);
recv(sListen,buf,buflen,0);
Dec.Decrypt(buf,buf,buflen);
unsigned char psw[16];
memcpy(psw,buf+132,16);
dec.Decrypt(psw,16);
cout<<psw;
the randseed for make 8 random numbers like =78549621 and its working becuase the client sending back some encrypted letters and at the end the same number i sent to it , when i receved it i tried to decrypt it but it didnt work , i used (Hybridz & Nullable) codes but it didnt work , i know it's sounds mean because I keep asking and it's look like am an stupid but as u know Guys always the 1st time is hardest one lol, so please dont get upset becuase am asking etc , thank u all :)