Page 1 of 1

DotP2013 profile hash generator

PostPosted: 05 Sep 2012, 14:06
by thefiremind
For those who don't know what we're talking about here: DotP2013 saves the user's progress in a .profile file, then it generates a hash from it and saves the hash to a file called hash.file. This allows the game to check the integrity of the save data. If you want to know more about the profile hash problem, look here.

The hashing algorithm has finally been discovered, and thanks to a big help from RiiakShiNal, I made a small program that generates the hash from any file, according to that algorithm.

What do you need this program for? Well, you can play around with your profile (make a backup first :wink:), rebuild hash.file, and see what happens in game. Maybe you'll make some interesting discoveries... if so, please share them! :D

It's a console application so you need to run it from the command prompt (or make a .bat file that does it for you).

The usage is easy: you must specify the input file as first argument, and the output file as second argument (optional). If you don't specify an output file, you'll get the result to screen anyway.

Example of output:
Code: Select all
D:\D13Hash\Win32\Release>D13Hash 1753681157.profile hash.file
* Duels of the Planeswalkers 2013 profile hash generator *
Opening file 1753681157.profile... OK
Length: 0x10c4
Hash: 0x10019b78
Writing hash to file hash.file... OK
You'll get a warning in case the input file has a non-standard length (it should always be 0x10c4 for a DotP2013 profile), but the hash will be computed anyway.

In the attachment you can find both the executable and the source code. Why is the executable relatively big for such a short code? Don't worry, no threats inside! I disabled the dynamic linking, so you don't need additional DLLs to make it work. And I used RAD Studio for compiling, which probably inserted something not really useful, but I didn't have time to install another environment just for this thing. :mrgreen:

Re: DotP2013 profile hash generator

PostPosted: 05 Sep 2012, 15:55
by RiiakShiNal
For those who don't know how big 0x10c4 is for the file (because not everyone is familiar with hexadecimal conversions), it is 4,292 bytes (standard profile size).

Re: DotP2013 profile hash generator

PostPosted: 12 Aug 2013, 18:26
by spiritcrusher1385
It seems they fixed this in the latest patch. Making custom decks with the help of this tool no longer works. Not sure if they changed the hash.file algorithm or something else tho.