[
  {
    "Id": "804412",
    "ThreadId": "347022",
    "Html": "\r\n<p>Dear,</p>\r\n<p>I am using ur control and it is amazing.</p>\r\n<p>I want to allow user of removing his archive password, change it, or set one foor unprotected archive.</p>\r\n<p>How &nbsp;to d it?</p>\r\n<p>Thx</p>\r\n",
    "PostedDate": "2012-03-02T06:24:47.65-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "804499",
    "ThreadId": "347022",
    "Html": "<p>\r\n<pre>try this code:</pre>\r\n<pre><br /></pre>\r\n<pre>here what i have done:</pre>\r\n<pre>1. first you need to extract all files from archive to temp folder with given password.</pre>\r\n<pre>2. then add files and set a new password again</pre>\r\n<pre>3. delete the temp folder.</pre>\r\n<pre><br /></pre>\r\n<pre>    using (var zip = new ZipFile(@\"C:\\zip\\Test.zip\"))\r\n            {\r\n                foreach (ZipEntry entry in zip)\r\n                {\r\n                    //Unzip all files with password to a temp\r\n                    entry.ExtractWithPassword(@\"C:\\zip\\Temp\", \"oldpass\");\r\n                }\r\n            }\r\n            //Now zip with you new password\r\n            using (var zip = new ZipFile())\r\n            {\r\n                foreach (string file in Directory.GetFiles(@\"C:\\zip\\Temp\"))\r\n                {\r\n                    ZipEntry entry = zip.AddFile(file);\r\n                    entry.Password = \"newpass\";\r\n                }\r\n                zip.Save(@\"C:\\zip\\Test.zip\");\r\n            }</pre>\r\n</p>\r\n<p>please let me know in case of any concerns.</p>",
    "PostedDate": "2012-03-02T08:51:41.86-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "804600",
    "ThreadId": "347022",
    "Html": "<p>Thx sir, I know that, I am searching for a simple function to do that. as this method requries full extraction and rebuilding of an archive qwhich is a terrible thing with 5GB archives.</p>",
    "PostedDate": "2012-03-02T11:37:27.463-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "809380",
    "ThreadId": "347022",
    "Html": "<p>The password in a zipfile is used to encrypt the entry data.&nbsp; As a result, \"removing a password\" involves decrypting the entry data, and then rewriting the unencyrpted entry data back into a zip&nbsp; file.&nbsp; There is no other way around this \"terrible thing\".</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2012-03-12T17:21:57.5-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]