Post Pacific  

Go Back   Post Pacific > Lineage2 C# > L2C# General

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 11.01.2006, 16:28   #10
Sindol
Архивный участник
 
Join Date: Oct 2005
Posts: 21
Default

The public key has to be scrambled before being sent to the client.

It can be scrambled by doing the following:

1. Swap the first 4 bytes with the last 4 bytes
2. Xor first 64 bytes with last 64 bytes
3. Xor bytes 13 - 16 with bytes 52 - 56
4. Xor last 64 bytes with first 64 bytes

I have not had any luck using C#'s RSA functions to decrypt packets tho, but I haven't been working on it too hard as I got frustrated.

Only the public modulus is sent to the client as the client can use whatever exponent it wants to encrypt the packet, the exponent isn't used in the decryption process at all.
Sindol is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:38.