java: create zip-file with password

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hansolo
    New Member
    • Jun 2010
    • 1

    java: create zip-file with password

    Hi together,

    i have been searching for hours but i can't find the right solution for my problem.

    my problem is a simple one:

    i have the file "C:\test\aFile. txt" and wants to zip it to "C:\test\aFile. zip" .

    Also the created zip-File should be protected with a password.

    The first part (zipping) isn't difficult, but the second one (protecting with password) is difficult.

    How can i reach my goal by using java? can you send me an example?

    Please help.

    bye
Working...