As you know, WinZip AES does not support encoding-specified zip entry
names. I googled and found that Apache Commons Compress library which using
Apache Ant's zip library can deal with the encoding parts.
I checked out the source code of winzipaes project, and found it using
java.util.zip.* libraries to create zip file. And then encrypt it.
I tried to modify the source code to migrate with Apache Commons Compress
lib, but I failed at the ZipFileEntryInputStream#nextEntry() method. When
the encoding is a Japanese encoding name, then an IOException will be
thrown, with message like following:
if( !Arrays.equals(intBuffer, new byte[] { 0x50, 0x4b, 0x03, 0x04 }) ) {
throw new IOException("wrong local file header signature - value=" +
ByteArrayHelper.toString(intBuffer) );
}
Could you give me a way to contact you, such as email address, and I want
to talk about it with you.
Thanks so much.
Original issue reported on code.google.com by zhangzho...@gmail.com on 14 Sep 2009 at 7:55
Original issue reported on code.google.com by
zhangzho...@gmail.com
on 14 Sep 2009 at 7:55