commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simone Tripodi <>
Subject Re: [compress] Zip password compressed archive
Date Mon, 07 Feb 2011 12:56:03 GMT
Thanks a lot for all the suggestions guys, very appreciated!
Have a nice day,

On Mon, Feb 7, 2011 at 12:15 PM, Stefan Bodewig <> wrote:
> On 2011-02-07, Simone Tripodi wrote:
>> do you know is there any way to protect with a password the produced
>> zip archive, with [compress] APIs?
> No, compress currently doesn't support any of the various encryption
> options of the ZIP format.
> Note that different ZIP tools have different understandings on what
> "password protected" ZIPs are.  The traditional version uses a pretty
> weak encryption algo that could be implemented inside compress but
> hasn't been (yet?).  This most likely is what you are looking for since
> it is supported by many of the existing tools.
> Strong encryption is used in different ways by PKWARE and WinZip.  The
> PKWARE approach comes with legal strings attached that makes it
> difficult to implement (if at all possible) inside commons-compress.
> The WinZIP approach can certainly be implemented in Java (see Antonio's
> link which ultimately leads to <>)
> but isn't widely supported in tools other than WinZIP.
> Stefan
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message