SevenZipAESEncryptionSettings
Contents
[
Hide
]SevenZipAESEncryptionSettings constructor (1 of 2)
Initializes a new instance of the SevenZipAESEncryptionSettings
class.
public SevenZipAESEncryptionSettings(string password)
Parameter | Type | Description |
---|---|---|
password | String | Password for encryption or decryption. |
Examples
using (var archive = new SevenZipArchive(new SevenZipEntrySettings(null, new SevenZipAESEncryptionSettings("p@s$"))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save("archive.7z");
}
See Also
- class SevenZipAESEncryptionSettings
- namespace Aspose.Zip.Saving
- assembly Aspose.Zip
SevenZipAESEncryptionSettings constructor (2 of 2)
Initializes a new instance of the SevenZipAESEncryptionSettings
class with external cipher.
public SevenZipAESEncryptionSettings(SevenZipCipher cipher)
Parameter | Type | Description |
---|---|---|
cipher | SevenZipCipher | Custom AES implementation. |
Examples
SevenZipCipher cipher = ComposeMyCipher();
using (var archive = new SevenZipArchive(new SevenZipEntrySettings(null, new SevenZipAESEncryptionSettings(cipher))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save("archive.7z");
}
See Also
- class SevenZipCipher
- class SevenZipAESEncryptionSettings
- namespace Aspose.Zip.Saving
- assembly Aspose.Zip