Class SevenZipAESEncryptionSettings
Namespace: Aspose.Zip.Saving
Assembly: Aspose.Zip.dll (25.1.0)
複数の7z暗号化メソッドの設定のための基底クラスです。
public class SevenZipAESEncryptionSettings : SevenZipEncryptionSettings
継承
object ← SevenZipEncryptionSettings ← SevenZipAESEncryptionSettings
継承されたメンバー
SevenZipEncryptionSettings.Password, SevenZipEncryptionSettings.EncryptHeader, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
備考
AES-256は7zアーカイブの唯一の暗号化方法です。したがって、Aspose.Zip.Saving.SevenZipAESEncryptionSettingsは唯一の実装です。
コンストラクター
SevenZipAESEncryptionSettings(string)
Aspose.Zip.Saving.SevenZipAESEncryptionSettingsクラスの新しいインスタンスを初期化します。
public SevenZipAESEncryptionSettings(string password)
パラメーター
password
string
暗号化または復号化のためのパスワードです。
例
using (var archive = new SevenZipArchive(new SevenZipEntrySettings(null, new SevenZipAESEncryptionSettings("p@s$"))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save("archive.7z");
}
SevenZipAESEncryptionSettings(SevenZipCipher)
外部暗号を使用してAspose.Zip.Saving.SevenZipAESEncryptionSettingsクラスの新しいインスタンスを初期化します。
public SevenZipAESEncryptionSettings(SevenZipCipher cipher)
パラメーター
cipher
SevenZipCipher
カスタムAES実装です。
例
SevenZipCipher cipher = ComposeMyCipher();
using (var archive = new SevenZipArchive(new SevenZipEntrySettings(null, new SevenZipAESEncryptionSettings(cipher))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save("archive.7z");
}