KeyDerivation.Pbkdf2(String, Byte[], KeyDerivationPrf, Int32, Int32) メソッド

定義

PBKDF2 アルゴリズムを使用してキーの派生を実行します。

public:
 static cli::array <System::Byte> ^ Pbkdf2(System::String ^ password, cli::array <System::Byte> ^ salt, Microsoft::AspNetCore::Cryptography::KeyDerivation::KeyDerivationPrf prf, int iterationCount, int numBytesRequested);
public static byte[] Pbkdf2 (string password, byte[] salt, Microsoft.AspNetCore.Cryptography.KeyDerivation.KeyDerivationPrf prf, int iterationCount, int numBytesRequested);
static member Pbkdf2 : string * byte[] * Microsoft.AspNetCore.Cryptography.KeyDerivation.KeyDerivationPrf * int * int -> byte[]
Public Shared Function Pbkdf2 (password As String, salt As Byte(), prf As KeyDerivationPrf, iterationCount As Integer, numBytesRequested As Integer) As Byte()

パラメーター

password
String

キーの派生元のパスワード。

salt
Byte[]

キー派生プロセス中に使用される塩。

prf
KeyDerivationPrf

キー派生プロセスで使用される擬似ランダム関数。

iterationCount
Int32

キー派生プロセス中に適用する擬似ランダム関数の反復回数。

numBytesRequested
Int32

派生キーの目的の長さ (バイト単位)。

戻り値

Byte[]

派生させたキー。

注釈

PBKDF2 アルゴリズムは RFC 2898 で指定されています。

適用対象