Class AesEcryptionSettings
A név: Aspose.Zip.Saving Összefoglaló: Aspose.Zip.dll (25.5.0)
Alaposztály a beállítások több zip titkosítási módszerek.
public class AesEcryptionSettings : EncryptionSettings
Inheritance
object ← EncryptionSettings ← AesEcryptionSettings
Örökletes tagok
EncryptionSettings.Method , EncryptionSettings.Password , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Remarks
További információ a https://www.winzip.com/win/en/aes_info.html oldalon
Constructors
AesEcryptionSettings(Részletesebben EncryptionMethod)
Kezdeményez egy új példát az Aspose.Zip.Saving.AesEcryptionSettings osztály.
public AesEcryptionSettings(string password, EncryptionMethod method)
Parameters
password
string
Jelszó titkosításhoz vagy dekódoláshoz.
method
EncryptionMethod
Algorithm opció jelzi a blokk méretét 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)
Kezdeményez egy új példát az Aspose.Zip.Saving.AesEcryptionSettings osztály jelszó nélkül.
public AesEcryptionSettings(EncryptionMethod method)
Parameters
method
EncryptionMethod
Algorithm opció jelzi a blokk méretét cipher.