mbroemme / libmpq

libmpq is a library for manipulating MPQ (MoPaQ) archives, which are used by Blizzard in most of their games (e.g., Diablo, Diablo 2, StarCraft, WarCraft 3, and World of Warcraft).
http://libmpq.org
GNU General Public License v2.0
37 stars 13 forks source link

An option to use filename-based decryption key #15

Open glebm opened 3 years ago

glebm commented 3 years ago

Previously, libmpq tried to brute-force the decryption key based on known contents, and only for packed files.

This caused issues, such as https://github.com/mbroemme/libmpq/issues/13.

Adds a new function, libmpq__block_open_offset_with_filename, that uses the filename to obtain the decryption key.