[compress] Zip password compressed archive

2011-02-07 Thread Simone Tripodi
Hi all guys,
do you know is there any way to protect with a password the produced
zip archive, with [compress] APIs?
Many thanks in advance, have a nice day!
Simo

http://people.apache.org/~simonetripodi/
http://www.99soft.org/

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



Re: [compress] Zip password compressed archive

2011-02-07 Thread Antonio Petrelli
2011/2/7 Simone Tripodi simonetrip...@apache.org:
 Hi all guys,
 do you know is there any way to protect with a password the produced
 zip archive, with [compress] APIs?

I guess not, however this might help:
http://stackoverflow.com/questions/166340/write-a-password-protected-zip-file-in-java

Antonio

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



Re: [compress] Zip password compressed archive

2011-02-07 Thread Christian Grobmeier
Hi,

no, not from what I know.

http://www.pkware.com/documents/casestudies/APPNOTE.TXT
(search for decryption)

even when zip compression is considered weak... wouldn't this be a
cool feature for compress 1.2?
In the spec is even pseudo code :-)

Cheers
Christian

On Mon, Feb 7, 2011 at 11:32 AM, Simone Tripodi
simonetrip...@apache.org wrote:
 Hi all guys,
 do you know is there any way to protect with a password the produced
 zip archive, with [compress] APIs?
 Many thanks in advance, have a nice day!
 Simo

 http://people.apache.org/~simonetripodi/
 http://www.99soft.org/

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





-- 
http://www.grobmeier.de

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



Re: [compress] Zip password compressed archive

2011-02-07 Thread Stefan Bodewig
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-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



Re: [compress] Zip password compressed archive

2011-02-07 Thread Simone Tripodi
Thanks a lot for all the suggestions guys, very appreciated!
Have a nice day,
Simo

http://people.apache.org/~simonetripodi/
http://www.99soft.org/



On Mon, Feb 7, 2011 at 12:15 PM, Stefan Bodewig bode...@apache.org 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.

 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-unsubscr...@commons.apache.org
 For additional commands, e-mail: user-h...@commons.apache.org



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