You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by CheeYang Chau <cy...@gmail.com> on 2008/04/16 10:36:47 UTC

Can zip task to create a zip archive with password?

Hi,

I have read everything about zip task but find no way to create
password protected zip archive.  Is there possible to do so with zip
task?

-- 
Best regards,
Chau Chee Yang

E Stream Software Sdn Bhd
URL: www.sql.com.my
SQL Financial Accounting

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


Re: Can zip task to create a zip archive with password?

Posted by Steve Loughran <st...@apache.org>.
CheeYang Chau wrote:
> Hi,
> 
> I have read everything about zip task but find no way to create
> password protected zip archive.  Is there possible to do so with zip
> task?
> 

1. no, not yet. You are as usual free to add this feature, the tests and 
the documentation. I fear this would be hard to test, as you would need 
to test against all the main zip implementations. Furthermore, unless 
you use a built in Java Cryptography Extensions crypto engine, Ant would 
have to play more with us export regulations, which scares people.

2. I seem to recall that the standard zip encryption is pretty weak. 
Better to use something like BouncyCastle and encrypt the files rigorously


-- 
Steve Loughran                  http://www.1060.org/blogxter/publish/5
Author: Ant in Action           http://antbook.org/

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