Class AesEcryptionSettings
Именује се: Aspose.Zip.Saving Асамблеја: Aspose.Zip.dll (25.5.0)
Основна класа за подешавања за неколико метода шифровања Зип.
public class AesEcryptionSettings : EncryptionSettings
Inheritance
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()
Remarks
Види више на https://www.winzip.com/win/en/aes_info.html
Constructors
AesEcryptionSettings(шифровање, шифровање метода)
Иницијалише нову инстанцију класе Aspose.Zip.Saving.AesEcryptionSettings.
public AesEcryptionSettings(string password, EncryptionMethod method)
Parameters
password
string
Парола за шифровање или дешифровање.
method
EncryptionMethod
Алгоритм опција указује на величину блока ципера.
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)
Иницијалише нову инстанцију класе Aspose.Zip.Saving.AesEcryptionSettings без лозинке.
public AesEcryptionSettings(EncryptionMethod method)
Parameters
method
EncryptionMethod
Алгоритм опција указује на величину блока ципера.