BNETDocs
C>S 0x3A SID_LOGONRESPONSE2
Message Id:0x3A
Message Name:SID_LOGONRESPONSE2
Direction:Client to Server
Used By:Diablo II, Diablo II Lord of Destruction
Starcraft Broodwar, Starcraft Original
Format:

 (UINT32)     Client Token
 (UINT32)     Server Token
  (UINT8)[20] Password Hash
(STRING)     Username

Remarks

This packet is the same as [SID_LOGONRESPONSE], but has additional response codes.

Contains Client's username & hashed password.

Battle.net password hashes are hashed twice using BSHA1. First, the password is hashed by itself, then the following data is hashed again and sent to Battle.net:

  1. (UINT32) Client Token
  2. (UINT32) Server Token
  3. (UINT8)[20] First password hash

Passwords should be converted to lower case before hashing.

| Edited:
Comments

no one has commented yet.