# C1.Zip.C1ZipFile.Password

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Zip_C1ZipFile_Password_" data-uid="C1.Zip.C1ZipFile.Password*">Password Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Zip_C1ZipFile_Password_" data-uid="C1.Zip.C1ZipFile.Password*"></a>
<h4 id="C1_Zip_C1ZipFile_Password" data-uid="C1.Zip.C1ZipFile.Password">Password</h4>
<div class="markdown level1 summary"><p>Gets or sets the password to use when adding or retrieving entries from the
zip file.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public string Password { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property Password As String</code></pre>
</div>
<h5 id="C1_Zip_C1ZipFile_Password_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>If the <a class="xref" href="C1.Zip.C1ZipFile.Password.html#C1_Zip_C1ZipFile_Password">Password</a> property is set to a non-empty string, any entries 
added to the zip file will be encrypted and protected by the password. To extract these 
entries later, the same password must be used.</p>
<p>The password applies to all entries from the moment it is set. If you set the 
password to a non-empty string and then add several entries to the zip file, all
entries will use the same password.</p>
<p>Although <b>C1Zip</b> supports Unicode characters in passwords, several popular zip 
utilities do not. To ensure your encrypted zip files can be opened with third-party
utilities, use passwords that consist of ASCII characters only.</p>
</div>
</div>
