Class SevenZipAESEncryptionSettings

Class SevenZipAESEncryptionSettings

Namespace: Aspose.Zip.Saving
Assembly: Aspose.Zip.dll (25.1.0)

複数の7z暗号化メソッドの設定のための基底クラスです。

public class SevenZipAESEncryptionSettings : SevenZipEncryptionSettings

継承

objectSevenZipEncryptionSettingsSevenZipAESEncryptionSettings

継承されたメンバー

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");
}
 日本語