getnamo / 7zip-cpp

Fork of SevenZip++ for modern builds.
Other
223 stars 94 forks source link

How to extract password protected archive? #20

Open sinall opened 7 years ago

sinall commented 7 years ago

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

getnamo commented 7 years ago

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 commented 6 years ago

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