Pbkdf2 ComputeDerivedKey Method CryptSharp
Computes a derived key.

Namespace: CryptSharp.Utility
Assembly: CryptSharp (in CryptSharp.dll) Version: 2.0.0.0
Syntax

public static byte[] ComputeDerivedKey(
	KeyedHashAlgorithm hmacAlgorithm,
	byte[] salt,
	int iterations,
	int derivedKeyLength
)

Parameters

hmacAlgorithm
Type: OnlineSystem.Security.Cryptography KeyedHashAlgorithm
The HMAC algorithm to use, for example OnlineHMACSHA256. Make sure to set OnlineKey.
salt
Type:  OnlineSystem Byte 
The salt. A unique salt means a unique derived key, even if the original key is identical.
iterations
Type: OnlineSystem Int32
The number of iterations to apply.
derivedKeyLength
Type: OnlineSystem Int32
The desired length of the derived key.

Return Value

The derived key.
See Also