Hello,
is there a way to remove a password protection from ZIP file without extracting them (password is knowing)?
We using the following code to encrypt a ZIP with a password:
zipFileStream = File.Open(targetZipFile, FileMode.Create, FileAccess.ReadWrite,
FileShare.ReadWrite);
EncryptionSettings encryptionSettings = null;
if (!string.IsNullOrWhiteSpace(password))
encryptionSettings = new AesEcryptionSettings(password, encryptionMethod);
archive = new Archive(new ArchiveEntrySettings(encryptionSettings: encryptionSettings));
foreach (var inputFile in inputFiles)
{
archive.CreateEntry(Path.GetFileName(inputFile), new FileInfo(inputFile), true);
}
archive.Save(zipFileStream);
Kind regards,
Andy