Class AesEcryptionSettings
Pôvodný názov: Aspose.Zip.Saving Zhromaždenie: Aspose.Zip.dll (25.5.0)
Základná trieda pre nastavenia pre niekoľko metód šifrovania zip.
public class AesEcryptionSettings : EncryptionSettings
Inheritance
object ← EncryptionSettings ← AesEcryptionSettings
Z dedičných členov
EncryptionSettings.Method , EncryptionSettings.Password , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Remarks
Viac informácií nájdete na stránke https://www.winzip.com/win/en/aes_info.html
Constructors
AesEcryptionSettings(String, šifrovanieMetóda)
Initalizuje nový príklad triedy Aspose.Zip.Saving.AesEcryptionSettings.
public AesEcryptionSettings(string password, EncryptionMethod method)
Parameters
password
string
heslo na šifrovanie alebo dekódovanie.
method
EncryptionMethod
Možnosť algoritmu, ktorá naznačuje veľkosť bloku čipky.
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)
Začína nový príklad triedy Aspose.Zip.Saving.AesEcryptionSettings bez hesla.
public AesEcryptionSettings(EncryptionMethod method)
Parameters
method
EncryptionMethod
Možnosť algoritmu, ktorá naznačuje veľkosť bloku čipky.