commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: [compress] Zip password compressed archive
Date Mon, 07 Feb 2011 11:15:41 GMT
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.

https://issues.apache.org/jira/browse/COMPRESS-88

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 <http://code.google.com/p/winzipaes/>)
but isn't widely supported in tools other than WinZIP.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message