I need to unzip password protected file.
I am asking for library to include to my Windows project, not utility.
Requirements:
- password supported
- C or C++
- not MFC-depended
- wish it not be DLL(as they are usualy compiled in some incompatible mode)
Already searched SO and Google, unfortunately no libraries found yet.
- most recommended “zlib” doesn’t support passwords;
- “Zip Utils” by Lucian Wischick (here) is nice, but there’s a bug – extracted file is cropped at end;
- another library I found is MFC-depended.
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”: