jQuery in Action, 3rd edition
The moose likes Java in General and the fly likes How to password protect a Zip file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to password protect a Zip file" Watch "How to password protect a Zip file" New topic

How to password protect a Zip file

Raza Mohd
Ranch Hand

Joined: Jan 20, 2010
Posts: 247

Hi everybody..
I am creating a zip file and i need to make it password protected..
can anybody tell me the way how do i proceed ..

I am not having any idea..
Thanks in advance.

Good luck!!
A small leak can sink a Gigantic ship.>
bart zagers
Ranch Hand

Joined: Feb 05, 2003
Posts: 234
There is no standard way of doing this in java.
I have read about winzipaes , but I have not yet used it myself.
Joanne Neal

Joined: Aug 05, 2005
Posts: 3742
I'm pretty sure this has been discussed before and, as Bart says, the standard Java Zip classes don't support it.
You might want to do a search on the forum for these other discussions to see if any alternatives were suggested.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: How to password protect a Zip file
It's not a secret anymore!