ZipArchive.Encrypt Method
Namespace: Rebex.IO.Compression
Assembly: Rebex.Zip.dll (version 7.0.9119)
Encrypt(String, String, String, EncryptionAlgorithm)
Encrypts an existing ZIP archive to the specified file.
Declaration
public static void Encrypt(string zipFileToEncrypt, string encryptedZipFile, string password, EncryptionAlgorithm algorithm)
Parameters
Type | Name | Description |
---|---|---|
String | zipFileToEncrypt | Path to a ZIP archive file to be encrypted. |
String | encryptedZipFile | Path where to save encrypted ZIP archive file. |
String | password | Password to be used for encryption. |
EncryptionAlgorithm | algorithm | Encryption algorithm to be used for encryption. |