Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: alex on December 15, 2002, 10:56 AM

Title: CDkey Encryption
Post by: alex on December 15, 2002, 10:56 AM
Hello, I'm fairly new to battle.net. I just started working on a client to emulate starcraft. Packet logging and reading the BNLS Protocol have helped me understand the protocol.

I'm currently working on the SID_AUTH_CHECK (0x51) packet.
(9 DWORDs) CD-key data is giving me a bit of trouble. Does anyone have a C++ function publicly available that will put the cdkey into the correct format?

Title: Re: CDkey Encryption
Post by: Noodlez on December 16, 2002, 02:56 PM
just insert the data bnls sends you as a non null terminated string
Title: Re: CDkey Encryption
Post by: Zakath on December 17, 2002, 06:59 AM
There is a (set of) function(s) publicly available that does that, though. Not sure where'd you find it at this point, however. Also, it's not the most intuitive thing, figuring out how the functions in the said file work to create those 9 DWORDs. ;)