TraditionalEncryptionSettings.TraditionalEncryptionSettings
Contents
[
Hide
]TraditionalEncryptionSettings(string)
Initializes a new instance of the TraditionalEncryptionSettings
class.
public TraditionalEncryptionSettings(string password)
Parameter | Type | Description |
---|---|---|
password | String | Password for encryption. |
Examples
using (var archive = new Archive(new ArchiveEntrySettings(null, new TraditionalEncryptionSettings("p@s$"))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save(zipFile);
}
See Also
- class TraditionalEncryptionSettings
- namespace Aspose.Zip.Saving
- assembly Aspose.Zip
TraditionalEncryptionSettings(string, Encoding)
Initializes a new instance of the TraditionalEncryptionSettings
class with user defined encoding.
public TraditionalEncryptionSettings(string password, Encoding encoding)
Parameter | Type | Description |
---|---|---|
password | String | Password for encryption. |
encoding | Encoding | Encoding for password characters. |
Remarks
Usage of this constructor is discouraged. Setting the encoding may contradict the standard and produce incompatible archive.
Examples
using (var archive = new Archive(new ArchiveEntrySettings(null, new TraditionalEncryptionSettings("p£s$", System.Text.Encoding.ASCII))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save(zipFile);
}
See Also
- class TraditionalEncryptionSettings
- namespace Aspose.Zip.Saving
- assembly Aspose.Zip
TraditionalEncryptionSettings()
Initializes a new instance of the TraditionalEncryptionSettings
class without a password.
public TraditionalEncryptionSettings()
See Also
- class TraditionalEncryptionSettings
- namespace Aspose.Zip.Saving
- assembly Aspose.Zip