Hello Fabrice,
I did and it looks very promising, thanks for the suggestion. And it supports passwords! I will compare the speed of this and the ZipArchive I am using now but I expect it to be faster.
Two remarks for future readers: this is a sample program (in C#) :
Code: Select all
using (Ionic.Zip.ZipFile zip = new Ionic.Zip.ZipFile())
{zip.Password = "test";
zip.Encryption = Ionic.Zip.EncryptionAlgorithm.WinZipAes256;
zip.AddDirectory(@"d:somedirectory");
zip.Save(@"d:MyZipFile.zip");}
I saw several samples but they only showed using
(ZipFile zip = new ZipFile())
That translates to the wrong class. It took me quite some searching to find out it should start with
Ionic.Zip.
2 I was curious what NuGet is actually doing. The project can be downloaded also from
https://www.nuget.org/packages/DotNetZip/ . There's an option Download package (as raw .nupkg file). If you rename that extension to .zip you can just extract dotnetzip.1.15.0.ziplibnet40DotNetZip.dll and include that. And the .pdb file + an .xml file with explanation if you want)
Dick