Quote:
Originally Posted by Kiyono
Well I can't really do anything about the pointer usage since it's what Hybrid coded and I don't know how to change it.
No it's not the User, I printed it to the console and it showed the correct User.
//edit With:
Client.Password = Client.Decrypt(login->User, Received);
And entering password: 123456789
and the console prints: #<"%♀'$&! which are indeed 9 characters but not the correct ones.
|
Well that's your problem right there then. You need to use something else to read the packet into an array rather than into a string.
The simplest way is completely remove what you have there and then simply read from the packet using your own methods.
IE:
byte[] Pass = new byte[16];
Buffer.BlockCopy(Data, StartOfPass, Pass, 0, 16);
Then run pass through the decryption.
or just use any packet reading methods (impulses is sexy, Also a fan of tannel's)