Encrypt file names in archives, prevent showing content list with ionic.zip in c#

2k Views Asked by At

I know zipping files with ionic.zip like here:

using (var zip = new ZipFile())
{
    zip.Encryption = EncryptionAlgorithm.WinZipAes256;
    zip.Password = "123";
    zip.AddDirectory("/path/");
    zip.SaveProgress += Zip_ProgressBar;
    zip.Save("/path/");
}

But this code allows people to see encrypted files and folders names. What can I do to prevent archived (encrypted) file and folder names from appearing?

0

There are 0 best solutions below