Class SevenZipEncryptionSettings
Namespace: Aspose.Zip.Saving
Assembly: Aspose.Zip.dll (25.1.0)
Lớp cơ sở cho cài đặt cho một số phương pháp mã hóa 7z.
public abstract class SevenZipEncryptionSettings
Kế thừa
object ← SevenZipEncryptionSettings
Kế thừa từ
Thành viên kế thừa
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Nhận xét
AES-256 là phương pháp mã hóa duy nhất có thể cho tệp nén 7z. Vì vậy, Aspose.Zip.Saving.SevenZipAESEncryptionSettings là triển khai duy nhất.
Các hàm khởi tạo
SevenZipEncryptionSettings(string)
Khởi tạo một thể hiện mới của lớp Aspose.Zip.Saving.SevenZipEncryptionSettings.
protected SevenZipEncryptionSettings(string password)
Tham số
password
string
Mật khẩu cho việc mã hóa hoặc giải mã.
SevenZipEncryptionSettings()
Khởi tạo một thể hiện mới của lớp Aspose.Zip.Saving.SevenZipEncryptionSettings.
protected SevenZipEncryptionSettings()
Các thuộc tính
EncryptHeader
Lấy hoặc đặt giá trị cho việc mã hóa tiêu đề.
public bool EncryptHeader { get; set; }
Giá trị thuộc tính
Nhận xét
Cài đặt này tương đương với -mhe=on
của công cụ 7-Zip. Hiện tại, nó không tương thích với nén tiêu đề.
Password
Lấy hoặc đặt mật khẩu cho việc mã hóa hoặc giải mã.
public string Password { get; set; }