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.
Joined: Sep 29, 2000
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
Joined: Apr 24, 2002
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.