commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoni Mylka (JIRA)" <>
Subject [jira] Commented: (COMPRESS-89) Better support for encrypted ZIP files
Date Fri, 27 Nov 2009 17:39:20 GMT


Antoni Mylka commented on COMPRESS-89:

I use a modified version of commons-compress, with this patch. It's used within the Aperture
Framework ( to detect encrypted ZIP files and mark them as encrypted. It seems
to work pretty well.

If you don't like this or think something is wrong with this - please let me know. All kinds
of feedback welcome. 

> Better support for encrypted ZIP files
> --------------------------------------
>                 Key: COMPRESS-89
>                 URL:
>             Project: Commons Compress
>          Issue Type: Improvement
>    Affects Versions: 1.0, 1.1
>            Reporter: Antoni Mylka
>         Attachments:, commons-compress-encrypted.patch
> Currently when the ZipArchiveInputStream or ZipFile encounters an encrypted zip it bails
out with cryptic exceptions like: 'invalid block type'. I would like to have two things:
> 1. an 'encrypted' flag in the ZipArchiveEntry class. It would be taken from the first
bit of the 'general purpose flag'
> 2. more descriptive error messages, both in ZipFile and ZipArchiveInputStream
> It might be useful in case someone wants to implement proper support for encrypted zips,
with methods to supply passwords/encryption keys and proper encryption/decryption algorithms.
> For the time being I just need to know if a file is encrypted or not. 
> I will post a patch with a proposal of a solution in near future.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message