Skip to main content

KeyDerivation

Provides algorithms for performing key derivation.

Assembly: ServiceStack.dll
View Source
Declaration
public static class KeyDerivation

Methods

Pbkdf2(String, Byte[], KeyDerivationPrf, Int32, Int32)

Performs key derivation using the PBKDF2 algorithm.

The PBKDF2 algorithm is specified in RFC 2898.

View Source
Declaration
public static byte[] Pbkdf2(string password, byte[] salt, KeyDerivationPrf prf, int iterationCount, int numBytesRequested)
Returns

System.Byte[]: The derived key.

The PBKDF2 algorithm is specified in RFC 2898.

Parameters
TypeNameDescription
System.StringpasswordThe password from which to derive the key.

The PBKDF2 algorithm is specified in RFC 2898.

| | System.Byte[] | salt | The salt to be used during the key derivation process.

The PBKDF2 algorithm is specified in RFC 2898.

| | ServiceStack.Auth.KeyDerivationPrf | prf | The pseudo-random function to be used in the key derivation process.

The PBKDF2 algorithm is specified in RFC 2898.

| | System.Int32 | iterationCount | The number of iterations of the pseudo-random function to apply during the key derivation process.

The PBKDF2 algorithm is specified in RFC 2898.

| | System.Int32 | numBytesRequested | The desired length (in bytes) of the derived key.

The PBKDF2 algorithm is specified in RFC 2898.

|