Class SevenZipAESEncryptionSettings

Class SevenZipAESEncryptionSettings

ชื่อพื้นที่: Aspose.Zip.Saving การประกอบ: Aspose.Zip.dll (25.5.0)

คลาสพื้นฐานสําหรับการตั้งค่าสําหรับวิธีการเข้ารหัส 7z หลาย

public class SevenZipAESEncryptionSettings : SevenZipEncryptionSettings

Inheritance

object SevenZipEncryptionSettings SevenZipAESEncryptionSettings

อนุญาโตตุลาการ

SevenZipEncryptionSettings.Password , SevenZipEncryptionSettings.EncryptHeader , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Remarks

AES-256 เป็นวิธีการเข้ารหัสเดียวที่สามารถใช้ได้สําหรับ archive 7z ดังนั้น Aspose.Zip.Saving.SevenZipAESEncryptionSettings เป็นการดําเนินการเดียว

Constructors

SevenZipAESEncryptionตั้งค่า(รั้ว)

เปิดตัวตัวอย่างใหม่ของคลาส Aspose.Zip.Saving.SevenZipAESEncryptionSettings

public SevenZipAESEncryptionSettings(string password)

Parameters

password string

รหัสผ่านสําหรับการเข้ารหัสหรือ decryption

Examples

using (var archive = new SevenZipArchive(new SevenZipEntrySettings(null, new SevenZipAESEncryptionSettings("p@s$"))))
{
   archive.CreateEntry("data.bin", "data.bin");
   archive.Save("archive.7z");
}

SevenZipAESEncryptionตั้งค่า(SevenZipCipher)

เปิดตัวตัวอย่างใหม่ของ Aspose.Zip.Saving.SevenZipAESEncryptionSettings class ด้วยชิปภายนอก

public SevenZipAESEncryptionSettings(SevenZipCipher cipher)

Parameters

cipher SevenZipCipher

การประมวลผล AES ที่กําหนดเอง

Examples

SevenZipCipher cipher = ComposeMyCipher();
using (var archive = new SevenZipArchive(new SevenZipEntrySettings(null, new SevenZipAESEncryptionSettings(cipher))))
{
   archive.CreateEntry("data.bin", "data.bin");
   archive.Save("archive.7z");
}
 แบบไทย