Forums Register Login

How to unzip password protected zip file in java?

+Pie Number of slices to send: Send
Hi all,

I am trying to unzip a password protected zip using java.util.zip package.
it throw an error "java.util.zip.ZipException: encrypted ZIP entry not supported".

is there any specific classes to unzip password protected zip file in java?

how can i make this works?

Thanks in advanced,
Giri
+Pie Number of slices to send: Send
Take a look at https://coderanch.com/t/276889/Streams/java/java-util-zip-password-protected

A Google search turned up IP*Works! Zip, commercial product by /n software
[ August 25, 2008: Message edited by: Mark Vedder ]
+Pie Number of slices to send: Send
In regards to the discussion Mark linked to, the built-in ZIP classes in the class library do not support password-protected ZIP files (and I'm not aware of a Java library that does).
+Pie Number of slices to send: Send
On the other hand, the ZIP File Format Specification is well defined, so anyone with 'some' time to kill could extend the standard ZipInputStream / ZipOutputStream pair to support encryption. Java crypto supports AES, so that's like a head start
Of sorts.
[ August 25, 2008: Message edited by: Jelle Klap ]
+Pie Number of slices to send: Send
Did I just hear you volunteer Jelle?
+Pie Number of slices to send: Send
Somehow I seem to remember that PKZIP and WinZIP use different but incompatible password schemes. Anyone know anything about that?
+Pie Number of slices to send: Send
 

Originally posted by Rob Prime:
Did I just hear you volunteer Jelle?



Good point.
I'll shut up now.
Aaaaaand ... we're on the march. Stylin. Get with it tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 22748 times.
Similar Threads
Password protected zip file
Java And OpenDocument Files
Zip file
Java And OpenDocument Files
How create encrypted/password-protected zip file?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 14:02:53.