[
  {
    "Id": "223149",
    "ThreadId": "65522",
    "Html": "<p><span style=\"color:black;font-size:10pt\">I'm trying to create Encrypted in Memory ZIP which can be attached to E-mail, but it seems to be not working properly for me. Please let me know what's wrong with my code.&nbsp; Setting Encryption and Password at ZipFile dosen&rsquo;t work either.<br><br></span>MemoryStream mstrm = new MemoryStream();<br>using(ZipFile zip = new ZipFile())<br>{<br>ZipEntry entry = zip.AddEntry(&quot;test.txt&quot;, &quot;&quot;, &quot;HelloWorld&quot;);<br>entry.Password = &quot;hello&quot;;<br>entry.Encryption = EncryptionAlgorithm.WinZipAes256;<br>zip.Save(mstrm);<br>}<br>File.WriteAllBytes(&quot;test.zip&quot;,mstrm.ToArray());&nbsp;</p>\r\n<p><span style=\"font-family:'Segoe UI','sans-serif';color:black;font-size:10pt\">It saves fine and can be opened using WinZip but when try to extract file it fails with invalid password.</span></p>",
    "PostedDate": "2009-08-13T15:48:10.6-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "223150",
    "ThreadId": "65522",
    "Html": "<p>what you are trying to do, should work. what version of the library are you using?</p>",
    "PostedDate": "2009-08-13T15:50:33.28-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "223152",
    "ThreadId": "65522",
    "Html": "<p>I'm using latest stable release '1.8.4.17'.</p>",
    "PostedDate": "2009-08-13T15:55:09.81-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "223157",
    "ThreadId": "65522",
    "Html": "This discussion has been copied to a work item. Click <a href=\"http://dotnetzip.codeplex.com/WorkItem/View.aspx?WorkItemId=8493\">here</a> to go to the work item and continue the discussion.",
    "PostedDate": "2009-08-13T16:18:13.687-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "223229",
    "ThreadId": "65522",
    "Html": "<p>Thanks for reporting the problem.&nbsp; I believe this is fixed in v1.8.4.18, which you can download now.</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2009-08-13T20:13:05.16-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "223249",
    "ThreadId": "65522",
    "Html": "<p>Downloaded latest version and it&rsquo;s working like champ. Thanks for quick response.</p>",
    "PostedDate": "2009-08-13T22:22:35.597-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]