Class AesEcryptionSettings
Tên không gian: Aspose.Zip.Saving Tổng hợp: Aspose.Zip.dll (25.5.0)
Khóa học cơ bản cho các cài đặt cho nhiều phương pháp mã hóa zip.
public class AesEcryptionSettings : EncryptionSettings
Inheritance
object ← EncryptionSettings ← AesEcryptionSettings
Thành viên thừa kế
EncryptionSettings.Method , EncryptionSettings.Password , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Remarks
Xem thêm tại https://www.winzip.com/win/en/aes_info.html
Constructors
AesEcryptionSettings(Màn hình, Encryption)
Bắt đầu một trường hợp mới của lớp Aspose.Zip.Saving.AesEcryptionSettings.
public AesEcryptionSettings(string password, EncryptionMethod method)
Parameters
password
string
mật khẩu cho mã hóa hoặc decryption.
method
EncryptionMethod
Lựa chọn thuật toán cho thấy kích thước khối của cipher.
Examples
using (var archive = new Archive(new ArchiveEntrySettings(null, new AesEcryptionSettings("p@s$", EncryptionMethod.AES256))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save("archive.zip");
}
Exceptions
method’ is not one of Aspose.Zip.Saving.EncryptionMethod.AES128, Aspose.Zip.Saving.EncryptionMethod.AES192, or Aspose.Zip.Saving.EncryptionMethod.AES256.
AesEcryptionSettings(EncryptionMethod)
Bắt đầu một trường hợp mới của lớp Aspose.Zip.Saving.AesEcryptionSettings mà không có mật khẩu.
public AesEcryptionSettings(EncryptionMethod method)
Parameters
method
EncryptionMethod
Lựa chọn thuật toán cho thấy kích thước khối của cipher.