commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoni Mylka (JIRA)" <j...@apache.org>
Subject [jira] Updated: (COMPRESS-89) Better support for encrypted ZIP files
Date Tue, 03 Nov 2009 19:21:32 GMT

     [ https://issues.apache.org/jira/browse/COMPRESS-89?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Antoni Mylka updated COMPRESS-89:
---------------------------------

    Attachment: apache-maven-2.2.1-encrypted-passhello.zip
                commons-compress-encrypted.patch

Uploaded a patch with my proposal of the solution. Attached a test case and an example file.
The example zip file is taken from maven 2.2.1 release so it's already copyrighted by ASF.

> Better support for encrypted ZIP files
> --------------------------------------
>
>                 Key: COMPRESS-89
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-89
>             Project: Commons Compress
>          Issue Type: Improvement
>    Affects Versions: 1.0, 1.1
>            Reporter: Antoni Mylka
>         Attachments: apache-maven-2.2.1-encrypted-passhello.zip, 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.


Mime
View raw message