Class AesEcryptionSettings
Numele spaţiului: Aspose.Zip.Saving Asamblare: Aspose.Zip.dll (25.5.0)
Clasa de bază pentru setările pentru mai multe metode de criptare zip.
public class AesEcryptionSettings : EncryptionSettings
Inheritance
object ← EncryptionSettings ← AesEcryptionSettings
Membrii moștenitori
EncryptionSettings.Method , EncryptionSettings.Password , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Remarks
Vezi mai multe la https://www.winzip.com/win/en/aes_info.html
Constructors
AesEcryptionSettings(Răspundeți, metodă de criptare)
Inițializează o nouă instanță a clasei Aspose.Zip.Saving.AesEcryptionSettings.
public AesEcryptionSettings(string password, EncryptionMethod method)
Parameters
password
string
Password pentru criptare sau decodare.
method
EncryptionMethod
Opțiunea de algoritm care indică dimensiunea blocului cipher.
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)
Inițializează o nouă instanță a clasei Aspose.Zip.Saving.AesEcryptionSettings fără parola.
public AesEcryptionSettings(EncryptionMethod method)
Parameters
method
EncryptionMethod
Opțiunea de algoritm care indică dimensiunea blocului cipher.