Encrypts an existing ZIP archive to the specified file.

Namespace:  Rebex.IO.Compression
Assembly:  Rebex.Zip (in Rebex.Zip.dll)

Syntax

Visual Basic
Public Shared Sub Encrypt ( _
	zipFileToEncrypt As String, _
	encryptedZipFile As String, _
	password As String, _
	algorithm As EncryptionAlgorithm _
)
C#
public static void Encrypt(
	string zipFileToEncrypt,
	string encryptedZipFile,
	string password,
	EncryptionAlgorithm algorithm
)

Parameters

zipFileToEncrypt
Type: System..::..String
Path to a ZIP archive file to be encrypted.
encryptedZipFile
Type: System..::..String
Path where to save encrypted ZIP archive file.
password
Type: System..::..String
Password to be used for encryption.
algorithm
Type: Rebex.IO.Compression..::..EncryptionAlgorithm
Encryption algorithm to be used for encryption.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also