Set password on Zip file using DotNetZip
<p>I'm using <a href="https://www.nuget.org/packages/DotNetZip/" rel="noreferrer">DotNetZip</a> to zip my files, but I need to set a password in zip.</p>

<p>I tryed:</p>

<pre><code>public void Zip(string path, string outputPath)
    {
        using (ZipFile zip = new ZipFile())
        {
            zip.AddDirectory(path);
            zip.Password = "password";
            zip.Save(outputPath);
        }
    }
</code></pre>

<p>But the output zip not have password.</p>

<p>The parameter <code>path</code>has a subfolder for exemple:
<code>path = c:\path\</code>
and inside path I have <code>subfolder</code></p>

<p>What is wrong?</p>