AesEcryptionSettings.AesEcryptionSettings
AesEcryptionSettings(string, EncryptionMethod)
の新しいインスタンスを初期化しますAesEcryptionSettings
class.
public AesEcryptionSettings(string password, EncryptionMethod method)
パラメータ | タイプ | 説明 |
---|
password | String | 暗号化または復号化のためのパスワード。 |
method | EncryptionMethod | 暗号のブロックサイズを示すアルゴリズムオプション。 |
例外
例外 | 調子 |
---|
NotSupportedException | methodの 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)
パラメータ | タイプ | 説明 |
---|
method | EncryptionMethod | 暗号のブロックサイズを示すアルゴリズムオプション。 |
関連項目