7zip-cpp icon indicating copy to clipboard operation
7zip-cpp copied to clipboard

How to extract password protected archive?

Open sinall opened this issue 7 years ago • 2 comments

Does this library support password protected archive extraction? I didn't find related API.

sinall avatar Mar 24 '17 10:03 sinall

I don't think there's an easy API exposed in the current master. That said the COM port api likely supports it, try looking for the keywords under https://github.com/keithjjones/7z e.g. 'Password', 'crypto' and then look into https://github.com/getnamo/7zip-cpp/blob/master/7zpp/SevenZipExtractor.cpp#L38 to see how it's currently used and where to extend the function to support passwords.

getnamo avatar Mar 25 '17 01:03 getnamo

might be supported with merge from KocourKuba (https://github.com/getnamo/7zip-cpp/commit/5e108e869f08b2683369286e03cc28a532fe972d)

getnamo avatar Jun 17 '18 14:06 getnamo