Class AesEcryptionSettings
Namespace: Aspose.Zip.Saving
Assembly: Aspose.Zip.dll (25.1.0)
คลาสพื้นฐานสำหรับการตั้งค่าสำหรับวิธีการเข้ารหัส zip หลายวิธี
public class AesEcryptionSettings : EncryptionSettings
การสืบทอด
object ← EncryptionSettings ← AesEcryptionSettings
สมาชิกที่สืบทอด
EncryptionSettings.Method, EncryptionSettings.Password, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
หมายเหตุ
ดูเพิ่มเติมที่ https://www.winzip.com/win/en/aes_info.html
ตัวสร้าง
AesEcryptionSettings(string, EncryptionMethod)
สร้างอินสแตนซ์ใหม่ของคลาส Aspose.Zip.Saving.AesEcryptionSettings
public AesEcryptionSettings(string password, EncryptionMethod method)
พารามิเตอร์
password
string
รหัสผ่านสำหรับการเข้ารหัสหรือถอดรหัส
method
EncryptionMethod
ตัวเลือกอัลกอริธึมที่ระบุขนาดบล็อกของรหัส
ตัวอย่าง
using (var archive = new Archive(new ArchiveEntrySettings(null, new AesEcryptionSettings("p@s$", EncryptionMethod.AES256))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save("archive.zip");
}
ข้อยกเว้น
method
ไม่ใช่หนึ่งใน Aspose.Zip.Saving.EncryptionMethod.AES128, Aspose.Zip.Saving.EncryptionMethod.AES192, หรือ Aspose.Zip.Saving.EncryptionMethod.AES256
AesEcryptionSettings(EncryptionMethod)
สร้างอินสแตนซ์ใหม่ของคลาส Aspose.Zip.Saving.AesEcryptionSettings โดยไม่มีรหัสผ่าน
public AesEcryptionSettings(EncryptionMethod method)
พารามิเตอร์
method
EncryptionMethod
ตัวเลือกอัลกอริธึมที่ระบุขนาดบล็อกของรหัส