Class SevenZipAESEncryptionSettings
ja nimityö: Aspose.Zip.Saving Kokoelma: Aspose.Zip.dll (25.5.0)
Perusluokka asetuksille useille 7z salausmenetelmille.
public class SevenZipAESEncryptionSettings : SevenZipEncryptionSettings
Inheritance
object ← SevenZipEncryptionSettings ← SevenZipAESEncryptionSettings
Perintöjäsenet
SevenZipEncryptionSettings.Password , SevenZipEncryptionSettings.EncryptHeader , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Remarks
AES-256 on ainoa mahdollinen salausmenetelmä 7z arkistoon. Joten Aspose.Zip.Saving.SevenZipAESEncryptionSettings on ainoa toteutus.
Constructors
Seitsemän sivuaEncryptionSettings(String)
Aloita uusi esimerkki Aspose.Zip.Saving.SevenZipAESEncryptionSettings luokan.
public SevenZipAESEncryptionSettings(string password)
Parameters
password
string
salasanan salaus tai salaus.
Examples
using (var archive = new SevenZipArchive(new SevenZipEntrySettings(null, new SevenZipAESEncryptionSettings("p@s$"))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save("archive.7z");
}
Seitsemän sivuaEncryptionSettings(SevenZipCipher)
Aloita Aspose.Zip.Saving.SevenZipAESEncryptionSettings -luokan uusi esimerkki ulkoisella cipherilla.
public SevenZipAESEncryptionSettings(SevenZipCipher cipher)
Parameters
cipher
SevenZipCipher
Käsitelty AES toteutus.
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");
}