Gets or sets the password to use when adding or retrieving entries from the zip file.

Namespace:  C1.C1Zip
Assembly:  C1.Silverlight.Zip (in C1.Silverlight.Zip.dll)

Syntax

C#
public string Password { get; set; }
Visual Basic
Public Property Password As String
	Get
	Set

Remarks

If the Password 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.

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.

Although C1Zip 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.

See Also