diff --git a/src/Runtime/LoopManager.cs b/src/Runtime/LoopManager.cs index 268fd86..1032050 100644 --- a/src/Runtime/LoopManager.cs +++ b/src/Runtime/LoopManager.cs @@ -101,6 +101,7 @@ private string ZipFiles() { var fi = new FileInfo(entry); var zipEntry = new ZipEntry(fi.Name) { DateTime = fi.LastWriteTime, Size = fi.Length }; + if (_context.ZipPassword != null) zipEntry.AESKeySize = 256; zipStream.PutNextEntry(zipEntry); var buffer = new byte[4096]; diff --git a/src/Runtime/OutputWriter.cs b/src/Runtime/OutputWriter.cs index 70820af..a998373 100644 --- a/src/Runtime/OutputWriter.cs +++ b/src/Runtime/OutputWriter.cs @@ -205,6 +205,7 @@ private string ZipFiles() { var fi = new FileInfo(entry); var zipEntry = new ZipEntry(fi.Name) { DateTime = fi.LastWriteTime, Size = fi.Length }; + if (_context.ZipPassword != null) zipEntry.AESKeySize = 256; zipStream.PutNextEntry(zipEntry); using (var fileStream = File.OpenRead(entry))