I need to unzip password protected file.
I am asking for library to include to my Windows project, not utility.
Requirements:
Already searched SO and Google, unfortunately no libraries found yet.
I can't believe there is no solution for this simple task in 2012. Please help.
Ended up using "Zip Utils" by Lucian Wischick.
There was a bug - extracted file is cropped by 12 bytes at end. I found out how to fix it.
To fix this bug, delete line 3657 in file "unzip.cpp":
pfile_in_zip_read_info->rest_read_uncompressed-=uDoEncHead;
Test if your password protected file can be decompressed with 7-zip.
If that is the case, then you should be able to use the codebase (as a dll).
The tool has support for zip decompression (ZlibDecoder) and 2 possible different encryption techniques (ZipCrypto & ZipStrong).
As for instructions how to use it, the 7-zip file manager tool uses the 7-zip dll to do all the work. You will need to look at the source code of the command line tool 7z.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With