• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Zip Directory using Java

 
Greenhorn
Posts: 10
Netbeans IDE Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all, i would like to know how to Zip a directory using Java, i've found that i could use the java.util.zip package but i need to zip the directory and put a password to the file created.... this is the only way i've found until now so i am open to new ideas... so the main idea is to compress a directory in such a way that only my application knows how to extract the compressed file.... Thanks to all
 
Alvaro Quintana
Greenhorn
Posts: 10
Netbeans IDE Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, after a lot of search, i found a way:



See ya later and hope this helps
 
Ranch Hand
Posts: 781
Netbeans IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Be aware that this encryption just encrypts the file independently of the fact that it a zip file. Even if you change to use one of the AES PBE algorithms it will not be equivalent to the zip encryption defined in http://www.winzip.com/aes_info.htm so you will not be able to decrypt it using one of the later WinZip (Version 11 ?) versions.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic