Password Property

A password for the zip archive.


public string Password { get; set; }
Public Property Password As String

Default Value



This property specifies the case-sensitive password used to encrypt or decrypt the archive. If set to an empty string, no password is used.

In this release, streaming out of encrypted archives is not supported. When compressing, WriteToProgressEvent must be set to false if Password is set.

Example (Compressing an Archive)

ZipControl.ArchiveFile = "c:\"
ZipControl.RecurseSubdirectories = true
ZipControl.Password = "nsoftware"

Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks ZIP 2020 .NET Edition - Version 20.0 [Build 7720]