-api-id | -api-type |
---|---|
M:Windows.Security.Cryptography.Core.KeyDerivationParameters.BuildForPbkdf2(Windows.Storage.Streams.IBuffer,System.UInt32) |
winrt method |
Creates a KeyDerivationParameters object for use in the password-based key derivation function 2 (PBKDF2).
The salt, a random or pseudorandom value to be combined with the password in multiple iterations. A salt is used to increase entropy above what can be obtained from using a password alone.
Number of iterations to be used to derive a key.
Refers to the parameters used during key derivation.
You can use the following algorithm names with the OpenAlgorithm function to open a PBKDF2 algorithm provider:
- KeyDerivationAlgorithmNames.Pbkdf2Md5
- KeyDerivationAlgorithmNames.Pbkdf2Sha1
- KeyDerivationAlgorithmNames.Pbkdf2Sha256
- KeyDerivationAlgorithmNames.Pbkdf2Sha384
- KeyDerivationAlgorithmNames.Pbkdf2Sha512
[!code-csharpShowDerivationFromPbkdf]