Class AesEcryptionSettings
nazivni prostor: Aspose.Zip.Saving Sastav: Aspose.Zip.dll (25.5.0)
Osnovna klasa za postavke za nekoliko metoda šifriranja zip-a.
public class AesEcryptionSettings : EncryptionSettings
Inheritance
object ← EncryptionSettings ← AesEcryptionSettings
naslijeđeni članovi
EncryptionSettings.Method , EncryptionSettings.Password , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Remarks
Pogledajte više na https://www.winzip.com/win/en/aes_info.html
Constructors
AesEcryptionSettings(String, Metoda šifriranja)
Inicijalizira novu primjenu klase Aspose.Zip.Saving.AesEcryptionSettings.
public AesEcryptionSettings(string password, EncryptionMethod method)
Parameters
password
string
Lozinka za šifriranje ili decryption.
method
EncryptionMethod
Opcija algoritma koja ukazuje na veličinu bloka cipera.
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)
Inicijalizira novu primjenu klase Aspose.Zip.Saving.AesEcryptionSettings bez lozinke.
public AesEcryptionSettings(EncryptionMethod method)
Parameters
method
EncryptionMethod
Opcija algoritma koja ukazuje na veličinu bloka cipera.