This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Password protect existing zip file in java

 
cle tan
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an existing zip file and I want to run a java application, after which, it's password protected.
People opening the zip file would have to enter the correct password to unzip the file.

Currently using zip4j http://www.lingala.net/zip4j/
but i noticed it does not have a method to password protect an existing zip file.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no standard method to password-protect a zip file. Each archigin utility that offers it would implement its own way. The most common one is probably WinZip's method, but even that is not universal. So - you're largely out on your own for this.
 
cle tan
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
wonder anyone has faced and solved this problem before?

doesn't look like winzip has its own java library to password protect an existing zip file.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic