hazzik / mpqtool-export

Automatically exported from code.google.com/p/mpqtool
0 stars 1 forks source link

Unable to determine encryption key #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
see also: http://code.google.com/p/mpqtool/issues/detail?id=6&can=1
With the file below, the exception comes again.

Original issue reported on code.google.com by deerc...@gmail.com on 6 Aug 2007 at 5:30

Attachments:

GoogleCodeExporter commented 9 years ago
This appears to be happening because the file is encrypted but not compressed.  
The
method of working out the encryption key I am using (based on stormlib) only 
works if
the file is compressed.

Ladik's MPQ Editor shows the key as unknown in its Name Breaker screen, but is 
still
able to decrypt it.  I wish I knew how.

I will keep looking into it.

Original comment by fool...@gmail.com on 6 Aug 2007 at 9:02

GoogleCodeExporter commented 9 years ago
I have found a fix.  It involves guessing the first 8 bytes of the file based 
on its
extension.

I have made a lot of changes to the code in the process so it will take me a 
while to
merge it with the current version in svn.

I also found the same issue with "staredit\wav\combeep0.wav" in Starcraft's
"maps\campaign\(1)Enslavers01.scm" so I've used that as a double-check for the 
new code.

Original comment by fool...@gmail.com on 17 Aug 2007 at 12:26

GoogleCodeExporter commented 9 years ago
Glad to hear that. And that's what mpqeditor does?

Original comment by deerc...@gmail.com on 17 Aug 2007 at 1:08

GoogleCodeExporter commented 9 years ago
I don't know how mpqeditor does it.  This method is my own invention.

This should now be fixed (svn revision 9).

Original comment by fool...@gmail.com on 19 Aug 2007 at 6:24

GoogleCodeExporter commented 9 years ago
Yes, it's fixed.
Thanks again!

Original comment by deerc...@gmail.com on 19 Aug 2007 at 10:33

GoogleCodeExporter commented 9 years ago
:)

Closing this issue.

Original comment by fool...@gmail.com on 19 Aug 2007 at 10:55