Bug 24167

Summary: Enable password protection for zip creation.
Product: Ant Reporter: Andrzej Taramina <andrzej>
Component: Core tasksAssignee: Ant Notifications List <notifications>
Status: NEW ---    
Severity: enhancement CC: langohr
Priority: P3    
Version: 1.5.4   
Target Milestone: ---   
Hardware: Other   
OS: All   

Description Andrzej Taramina 2003-10-28 00:27:08 UTC
Sure would be nice if the zip core task allowed you to specify a password that 
would then be used to encrypt the included files, per the zip standard.

Basically the same as specifying the -s option for pkzip version 2.04g.

Thanks.

....Andrzej
Comment 1 Larry Shatzer 2003-10-31 22:08:55 UTC
java.util.zip does not support passwords, which is what the <zip> task is based 
on.
Comment 2 Dominique Devienne 2003-10-31 22:13:52 UTC
No quite. <zip> is based on import org.apache.tools.zip. --DD
Comment 3 Stefan Bodewig 2005-03-16 17:14:34 UTC
*** Bug 29724 has been marked as a duplicate of this bug. ***
Comment 4 Larry Shatzer 2005-09-23 18:57:15 UTC
*** Bug 36786 has been marked as a duplicate of this bug. ***
Comment 5 Chris 2005-09-23 19:14:02 UTC
What is the feasibility for adding support for this? It would be nice to not 
have to use winzip or other utils to create the protection.

Thanks,
Chris
Comment 6 Steve Loughran 2005-09-23 21:44:02 UTC
1. it would need to be implemented by people who care about the function, which
means only those people who want the feature.

2. it will be a nightmare to test. 

3. winzip standard encryption is breakable by brute force, the non-standard ones
are non-standard and so not really feasible. 

there is some work on in jakarta commons on doing PGP encrypt/sign with the
BouncyCastle libraries. 
Comment 7 Matt Benson 2005-09-23 22:10:27 UTC
well, there is theory, though nothing tangible yet.