I work with SevenZSharp from here
for Decode file I use:
CompressionEngine.Current.Decoder.DecodeIntoDirectory(@"D:\target\host_update.7z", @"D:\target");
But I don't have information how to decode .7z file with password!? Please, help me. Thanks
By the look of the source code of SevenZSharp, it does not support password protected files.
Here's something else that might help you from codeplex. It seem to have an interface called
ICryptoGetTextPassword
that you might be able to use if the 7z is password protected.Edit
With a bit further look at SevenZipSharp it seems that it should support password protected archives accroding to their project page ( http://sevenzipsharp.codeplex.com/ ):
You need to download the latest code from Codeplex and build it yourself, in it you will have a class called
SevenZipExtractor
where you have the following constructor:Note this is not the same as Seven7Sharp, this is SevenZipSharp, but it works with
7z
.