Class SevenZipAESEncryptionSettings
Nazwa przestrzeń: Aspose.Zip.Saving Zestawienie: Aspose.Zip.dll (25.5.0)
Klasa podstawowa dla ustawień dla kilku metod szyfrowania 7z.
public class SevenZipAESEncryptionSettings : SevenZipEncryptionSettings
Inheritance
object ← SevenZipEncryptionSettings ← SevenZipAESEncryptionSettings
Dziedziczeni członkowie
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 jest jedyną możliwą metodą szyfrowania dla archiwum 7z. Tak więc Aspose.Zip.Saving.SevenZipAESEncryptionSettings jest jedyną implementacją.
Constructors
SześćdziesiątkiEncryptionSettings(strumień)
Inicjalizuje nową instancję klasy Aspose.Zip.Saving.SevenZipAESEncryptionSettings.
public SevenZipAESEncryptionSettings(string password)
Parameters
password
string
Hasło do szyfrowania lub dekrypcji.
Examples
using (var archive = new SevenZipArchive(new SevenZipEntrySettings(null, new SevenZipAESEncryptionSettings("p@s$"))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save("archive.7z");
}
SześćdziesiątkiEncryptionSettings(SevenZipCipher)
Inicjalizuje nową instancję klasy Aspose.Zip.Saving.SevenZipAESEncryptionSettings z zewnętrznym cyferem.
public SevenZipAESEncryptionSettings(SevenZipCipher cipher)
Parameters
cipher
SevenZipCipher
Wdrożenie dostosowane do AES.
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");
}