Class AesEcryptionSettings
Namespace: Aspose.Zip.Saving
Assembly: Aspose.Zip.dll (25.1.0)
複数のzip暗号化メソッドの設定のための基底クラスです。
public class AesEcryptionSettings : EncryptionSettings
継承
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()
備考
詳細は https://www.winzip.com/win/en/aes_info.html を参照してください。
コンストラクター
AesEcryptionSettings(string, EncryptionMethod)
Aspose.Zip.Saving.AesEcryptionSettingsクラスの新しいインスタンスを初期化します。
public AesEcryptionSettings(string password, EncryptionMethod method)
パラメーター
password
string
暗号化または復号化のためのパスワードです。
method
EncryptionMethod
暗号のブロックサイズを示すアルゴリズムオプションです。
例
using (var archive = new Archive(new ArchiveEntrySettings(null, new AesEcryptionSettings("p@s$", EncryptionMethod.AES256))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save("archive.zip");
}
例外
method
は、Aspose.Zip.Saving.EncryptionMethod.AES128、Aspose.Zip.Saving.EncryptionMethod.AES192、またはAspose.Zip.Saving.EncryptionMethod.AES256のいずれかではありません。
AesEcryptionSettings(EncryptionMethod)
パスワードなしでAspose.Zip.Saving.AesEcryptionSettingsクラスの新しいインスタンスを初期化します。
public AesEcryptionSettings(EncryptionMethod method)
パラメーター
method
EncryptionMethod
暗号のブロックサイズを示すアルゴリズムオプションです。