| Author |
How create encrypted/password-protected zip file?
|
Robert Paris
Ranch Hand
Joined: Jul 28, 2002
Posts: 585
|
|
|
Any idea if there's a way with the Java API to create an encrypted and password-protected ZIP file? I know how to create a zip file with Java, but I need encryption and password protection.
|
 |
Cindy Glass
"The Hood"
Sheriff
Joined: Sep 29, 2000
Posts: 8521
|
|
|
Let's move this to the Security forum and see if anyone over there has a clue.
|
"JavaRanch, where the deer and the Certified play" - David O'Meara
|
 |
Jon Dornback
Ranch Hand
Joined: Apr 24, 2002
Posts: 137
|
|
i haven't attempted this, but if you can already programmatically create the zip file, you could then use the java.security and javax.crypto classes to encrypt the zip file using password based encryption (PBE). this would make it a two stage process, but it's a start. PBE info and example at: http://java.sun.com/products/jce/doc/guide/API_users_guide.html#PBE
|
use the [CODE] tags - it makes it much easier for people to help you.
|
 |
 |
|
|
subject: How create encrypted/password-protected zip file?
|
|
|