SevenZipAESEncryptionSettings.SevenZipAESEncryptionSettings
SevenZipAESEncryptionSettings(string)
Menginisialisasi instance baru dariSevenZipAESEncryptionSettings
kelas.
public SevenZipAESEncryptionSettings(string password)
Parameter | Jenis | Keterangan |
---|---|---|
password | String | Kata sandi untuk enkripsi atau dekripsi. |
Contoh
using (var archive = new SevenZipArchive(new SevenZipEntrySettings(null, new SevenZipAESEncryptionSettings("p@s$"))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save("archive.7z");
}
Lihat juga
- class SevenZipAESEncryptionSettings
- ruang nama Aspose.Zip.Saving
- perakitan Aspose.Zip
SevenZipAESEncryptionSettings(SevenZipCipher)
Menginisialisasi instance baru dariSevenZipAESEncryptionSettings
kelas dengan sandi eksternal.
public SevenZipAESEncryptionSettings(SevenZipCipher cipher)
Parameter | Jenis | Keterangan |
---|---|---|
cipher | SevenZipCipher | Implementasi AES khusus. |
Contoh
SevenZipCipher cipher = ComposeMyCipher();
using (var archive = new SevenZipArchive(new SevenZipEntrySettings(null, new SevenZipAESEncryptionSettings(cipher))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save("archive.7z");
}
Lihat juga
- class SevenZipCipher
- class SevenZipAESEncryptionSettings
- ruang nama Aspose.Zip.Saving
- perakitan Aspose.Zip