Class AesEcryptionSettings

Class AesEcryptionSettings

名称: Aspose.Zip.Saving 組み合わせ: Aspose.Zip.dll (25.5.0)

複数のZIP暗号化方法の設定のためのベースクラス。

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

NotSupportedException

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

アルゴリズムの選択肢は、ブロックサイズのチッパーを示す。

 日本語