[
  {
    "Id": "1489948",
    "ThreadId": "660172",
    "Html": "Hello,\r<br />\n<br />\nI have been working with this class on many C# projects.\r<br />\n<br />\nBut for my current project, I would like to have a password only on main say sample.zip file.\r<br />\n<br />\nNot on each zip within this sample.zip file, since it would not be a good user experience to have to input the same password or different one on each file with the sample.zip file.\r<br />\n<br />\nMy current testing code.<br />\n<pre><code>using (ZipFile zip = new ZipFile())\n            {\n                zip.Password = &quot;123456!&quot;;\n                zip.AddFile(@&quot;C:\\Temp\\ReadMe.txt&quot;); // no password for this one\n                zip.AddFile(@&quot;C:\\Temp\\image1.jpg&quot;);\n                zip.AddFile(@&quot;C:\\Temp\\Installme.msi&quot;);\n\n                zip.Save(&quot;Backup.zip&quot;);\n</code></pre>\n\nSo, when you unzip this file, you can see each file, but if you want to read, edit, you will be prompted for the password.\r<br />\n<br />\nI would like you to have to enter the password once and then have access to any file.\r<br />\n<br />\nThanks,<br />\n",
    "PostedDate": "2016-12-15T17:38:19.267-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]