Class SevenZipEncryptionSettings
Namespace: Aspose.Zip.Saving
Assembly: Aspose.Zip.dll (25.1.0)
Klasa bazowa dla ustawień dla kilku metod szyfrowania 7z.
public abstract class SevenZipEncryptionSettings
Dziedziczenie
object ← SevenZipEncryptionSettings
Pochodne
Członkowie dziedziczeni
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Uwagi
AES-256 jest jedyną możliwą metodą szyfrowania dla archiwum 7z. Dlatego Aspose.Zip.Saving.SevenZipAESEncryptionSettings jest jedyną implementacją.
Konstruktory
SevenZipEncryptionSettings(string)
Inicjalizuje nową instancję klasy Aspose.Zip.Saving.SevenZipEncryptionSettings.
protected SevenZipEncryptionSettings(string password)
Parametry
password
string
Hasło do szyfrowania lub deszyfrowania.
SevenZipEncryptionSettings()
Inicjalizuje nową instancję klasy Aspose.Zip.Saving.SevenZipEncryptionSettings.
protected SevenZipEncryptionSettings()
Właściwości
EncryptHeader
Pobiera lub ustawia wartość wskazującą na szyfrowanie nagłówka.
public bool EncryptHeader { get; set; }
Wartość właściwości
Uwagi
To ustawienie jest równoważne przełącznikowi -mhe=on
narzędzia 7-Zip. Obecnie jest niekompatybilne z kompresją nagłówka.
Password
Pobiera lub ustawia hasło do szyfrowania lub deszyfrowania.
public string Password { get; set; }