kprochazka / winzipaes

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

Decryption Help #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, I'm new on this and I don't konw very much about this project jet
(haven't take look at the source code), I'm trying to decrypt a protected
zip file and I'm getting the following exception:

java.util.zip.ZipException: expected 'extra field header ID' (0x9901) not
neither found in central directory nor local file header
    at
de.idyl.crypto.zip.impl.CentralDirectoryEntry.initFromRaFile(CentralDirectoryEnt
ry.java:92)
    at
de.idyl.crypto.zip.impl.CentralDirectoryEntry.<init>(CentralDirectoryEntry.java:
66)
    at
de.idyl.crypto.zip.AesZipFileDecrypter.getEntryList(AesZipFileDecrypter.java:96)
    at com.ghr.test.zip.UnzipTest.unzipFile(UnzipTest.java:28)
    at com.ghr.test.zip.UnzipTest.main(UnzipTest.java:42)

by now I only want to list the zip entries with the following code:

  itEntries = decrypter.getEntryList().iterator();

  while(itEntries.hasNext()) {
    entry = itEntries.next();
    System.out.println("Entry: " + entry.getName());
  }

The password is: moco

Original issue reported on code.google.com by gerardoh...@gmail.com on 12 Oct 2009 at 11:06

Attachments:

GoogleCodeExporter commented 9 years ago
Which program did you use to create the zip file?

Original comment by olaf.merkert on 13 Oct 2009 at 4:05

GoogleCodeExporter commented 9 years ago
I've used Winrar 3.8 on a Windows Vista Ultimate x64

Original comment by gerardoh...@gmail.com on 14 Oct 2009 at 6:30

GoogleCodeExporter commented 9 years ago
The sample provided was "encrypted" with the unsecure Zip 2.0 compatible
"encryption". This library is intended for the safer 256-Bit AES encryption 
mode.

Original comment by olaf.merkert on 14 Oct 2009 at 7:26