Class SevenZipAESEncryptionSettings
A név: Aspose.Zip.Saving Összefoglaló: Aspose.Zip.dll (25.5.0)
Alaposztály a beállítások több 7z titkosítási módszerek.
public class SevenZipAESEncryptionSettings : SevenZipEncryptionSettings
Inheritance
object ← SevenZipEncryptionSettings ← SevenZipAESEncryptionSettings
Örökletes tagok
SevenZipEncryptionSettings.Password , SevenZipEncryptionSettings.EncryptHeader , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Remarks
Az AES-256 az egyetlen lehetséges titkosítási módszer a 7z archívum. Tehát az Aspose.Zip.Saving.SevenZipAESEncryptionSettings az egyetlen megvalósítás.
Constructors
7SzerkesztésEncryptionSettings(A string)
Kezdeményez egy új példát az Aspose.Zip.Saving.SevenZipAESEncryptionSettings osztály.
public SevenZipAESEncryptionSettings(string password)
Parameters
password
string
Jelszó titkosításhoz vagy dekódoláshoz.
Examples
using (var archive = new SevenZipArchive(new SevenZipEntrySettings(null, new SevenZipAESEncryptionSettings("p@s$"))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save("archive.7z");
}
7SzerkesztésEncryptionSettings(SevenZipCipher)
Kezdeményez egy új példát az Aspose.Zip.Saving.SevenZipAESEncryptionSettings osztály külső cipherrel.
public SevenZipAESEncryptionSettings(SevenZipCipher cipher)
Parameters
cipher
SevenZipCipher
Az AES alkalmazása.
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");
}