• Welcome to Valhalla Legends Archive.
 

CD-key hashing

Started by Banana fanna fo fanna, April 10, 2003, 09:12 PM

Previous topic - Next topic

Banana fanna fo fanna

Anyone care to explain how it works? I don't really want code...I'm just interested on how Blizzard does it.

drivehappy

I may be wrong here, but I'll see if I can explain it.

When you connect to Battle.net and view the packets you will notice the server sends values for A, B, C. Since these are fairly large numbers I'm assuming that it could be a prime factor encryption it uses (www.rsasecurity.com). But, I could be way off. Skywing should know the general gist since BNLS hashes the key correctly ;).

c0ol

#2
hehe thats CR, and it uses a customized checksum.  the cdkey is decoded using some  screwball complex method into several values that are hashed using modified a SHA-1 algorithm.

Camel

* Camel points out that c0ol explained _decoding_ cd key

cd key _hashing_ uses the same function (Broken SHA-1) that you will use whenever you hash something for bnet (unless WAR3 uses a different hashing method, which is unlikely). to hash the cd key you need to first decode the cd key, and then send the values returned through your Broken SHA-1 function.

also note that the old cd key packet (0x36) used a different _hashing_ method--it's basicly the same exact thing, except for a few minor changes that drasticly change the end result.

c0ol

isnt that what i said?

Camel


Banana fanna fo fanna

Well the general CD key thing lol.