Login Protocol: LoginRequest - Afr0Games/Project-Dollhouse GitHub Wiki
LoginRequest
Client
Description: First packet sent by client to loginserver.
ID: 0x00, byte
PacketLength: Length of packet (1 byte for ID, 1 byte for length, variable, 4 bytes for client's version), ushort
UsernameLength: Length of username, byte
Username: Username, array of ASCII chars (byte)
HashLength: Length of hash, byte
Hash: Hash of username, salted with password (see: http://www.dijksterhuis.org/creating-salted-hash-values-in-c/), array of bytes
EncryptionkeyLength: Length of encryptionkey, byte
Encryptionkey: SHA1-key derived from password (see: http://msdn.microsoft.com/en-us/library/system.security.cryptography.passwordderivebytes.aspx)
Version1: First part of client's version, byte
Version2: Second part of client's version, byte
Version3: Third part of client's version, byte
Version4: Fourth part of client's version, byte