What exactly is it your having problems with anyway?
So guide me through what your actually doing, tryna identify where your going wrong here...Quote:
i made the buffer exactly like the one at coemuv2... n yet it still gives the exception. I just dont know what im doing wrong( with exactly i dont mean i cloned the packet n resend to my client.. i mean its packet structure is the same... with the TQServer string at the end of the Publickey n the publickey being generated automatically) I made a lill program that captures the packets in hex strings n then converts to byte array n decrypts it with your method n show it on the console. This way i checked the diferences between coemuv2 keyexchange n the server im trying to work with's exchange. I knew the program worked coz it successfully decrypted the P n G hex strings which means the rest should be decrypted n all is fine, although that exception keeps getting on my nerve. Please tell me what im doing wrong? My guess is the clientiv n serveriv
[Only registered and activated users can see links. Click Here To Register...]
Indeed the length is fixed at 373, simply because I set random data to always be an exact length rather then something randomly sized. Either way will work.Quote:
ty ill try. I also noticed that the header of all the packets i recieve from coemuv2 is the same n diferent than the one i generate. Also their packet length is always 373 n ours keep changing coz of the random byte lengths. Would that cause any troubles? I did it. Should i subtract the junk length also? Coz it doesnt want to work still