Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to password protect a Zip file

 
Raza Mohd
Ranch Hand
Posts: 247
Java MyEclipse IDE MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Thanks
Raza!
 
bart zagers
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic