Class AesEcryptionSettings
ชื่อพื้นที่: Aspose.Zip.Saving การประกอบ: Aspose.Zip.dll (25.5.0)
คลาสพื้นฐานสําหรับการตั้งค่าสําหรับหลายวิธีการเข้ารหัส zip
public class AesEcryptionSettings : EncryptionSettings
Inheritance
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()
Remarks
ดูเพิ่มเติมที่ https://www.winzip.com/win/en/aes_info.html
Constructors
AesEcryptionSettings(รั้ว, EncryptionMethod)
เปิดตัวตัวอย่างใหม่ของคลาส Aspose.Zip.Saving.AesEcryptionSettings
public AesEcryptionSettings(string password, EncryptionMethod method)
Parameters
password
string
รหัสผ่านสําหรับการเข้ารหัสหรือ decryption
method
EncryptionMethod
ตัวเลือกแอลกอริทึมที่แสดงถึงขนาดบล็อกของชิป
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)
เปิดตัวตัวอย่างใหม่ของคลาส Aspose.Zip.Saving.AesEcryptionSettings โดยไม่มีรหัสผ่าน
public AesEcryptionSettings(EncryptionMethod method)
Parameters
method
EncryptionMethod
ตัวเลือกแอลกอริทึมที่แสดงถึงขนาดบล็อกของชิป