AesEcryptionSettings.AesEcryptionSettings

AesEcryptionSettings(string, EncryptionMethod)

の新しいインスタンスを初期化しますAesEcryptionSettingsclass.

public AesEcryptionSettings(string password, EncryptionMethod method)
パラメータタイプ説明
passwordString暗号化または復号化のためのパスワード。
methodEncryptionMethod暗号のブロックサイズを示すアルゴリズムオプション。

例外

例外調子
NotSupportedExceptionmethodの 1 つではありませんAES128、AES192 、 またAES256.

using (var archive = new Archive(new ArchiveEntrySettings(null, new AesEcryptionSettings("p@s$", EncryptionMethod.AES256))))
{
   archive.CreateEntry("data.bin", "data.bin");
   archive.Save("archive.zip");
}

関連項目


AesEcryptionSettings(EncryptionMethod)

の新しいインスタンスを初期化しますAesEcryptionSettingsパスワードなしのクラス.

public AesEcryptionSettings(EncryptionMethod method)
パラメータタイプ説明
methodEncryptionMethod暗号のブロックサイズを示すアルゴリズムオプション。

関連項目