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
אפשרות אלגוריתם המצביעה על גודל הבלוק של הצופן.