Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to set password for a zip file?

908059Feb 13 2012 — edited Feb 14 2012
I am able to add files to a zip file using java.util.zip.ZipOutputStream. I'd like to set password for the generated zip file, but could not find any relevant API in JDK doc.
How to do that in Java? Maybe using a third party library?

Any suggestions are welcome.
Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 13 2012
Added on Feb 13 2012
3 comments
701 views