Rfc2898DeriveBytes.Salt プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > Rfc2898DeriveBytes.Salt プロパティの意味・解説 

Rfc2898DeriveBytes.Salt プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

演算使用するキー salt 値を取得または設定します

名前空間: System.Security.Cryptography
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Dim instance As Rfc2898DeriveBytes
Dim value As Byte()

value = instance.Salt

instance.Salt = value
public:
property array<unsigned char>^ Salt {
    array<unsigned char>^ get ();
    void set (array<unsigned char>^
 value);
}
/** @property */
public byte[] get_Salt ()

/** @property */
public void set_Salt (byte[] value)

プロパティ
演算使用するキー salt 値。

例外例外
例外種類条件

ArgumentException

指定されsaltサイズが 8 バイト未満です。

ArgumentNullException

saltnull 参照 (Visual Basic では Nothing) です。

解説解説

salt は、メッセージ不正に復号化することを、より困難にするためのランダムなバイト データです。辞書攻撃とは、暗号化された値を、使用される可能性の高そうなキーに対してあらかじめ算出しておいた多数暗号化値と比較することによって、暗号化されたメッセージ復号化ようとする攻撃です。この攻撃への対処法としては、キー派生させる前にパスワード末尾salt (ランダム バイト) を追加します

使用例使用例

Rfc2898DeriveBytes クラス使用してTripleDES クラスのまったく同じ 2 つキー作成するコード例次に示します次に、このキー使用して一部データ暗号化および復号化ます。

string pwd1 = passwordargs[0];

byte[] salt1 = new byte[] { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05,
 0x06, 0xF1, 0xF0, 0xEE, 0x21, 0x22, 0x45};
//data1 can be a string or contents of a file.
string data1 = "Some test data";
//The default iteration count is 1000 so the two methods use the same
 iteration count.
int myIterations = 1000;
String^ pwd1 = passwordargs[ 1 ];

array<Byte>^salt1 = gcnew array<Byte>{
   0x00,0x01,0x02,0x03,0x04,0x05,0x06,0xF1,0xF0,0xEE,0x21,0x22,0x45
};

//data1 can be a string or contents of a file.
String^ data1 = "Some test data";

//The default iteration count is 1000 so the two methods use the same
 iteration count.
int myIterations = 1000;
String pwd1 = (String)passwordArgs.get_Item(0);

ubyte salt1[] = new ubyte[] { 0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6
,
    0xF1, 0xF0, 0xEE, 0x21, 0x22, 0x45 };
//data1 can be a string or contents of a file.
String data1 = "Some test data";
//The default iteration count is 1000 so the two methods use the
//same iteration count.
int myIterations = 1000;
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
Rfc2898DeriveBytes クラス
Rfc2898DeriveBytes メンバ
System.Security.Cryptography 名前空間
その他の技術情報
暗号サービス


このページでは「.NET Framework クラス ライブラリ リファレンス」からRfc2898DeriveBytes.Salt プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からRfc2898DeriveBytes.Salt プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からRfc2898DeriveBytes.Salt プロパティを検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

Rfc2898DeriveBytes.Salt プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



Rfc2898DeriveBytes.Salt プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS