Click or drag to resize

PbeKdf2(Int32, Byte, Byte, Int32, HashAlgorithm) Method

Derive a key of any length from a password using the PBKDF2 algorithm from PKCS #5 v2.1.

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public static byte[] Kdf2(
	int dkLen,
	byte[] pwdBytes,
	byte[] salt,
	int count,
	HashAlgorithm hashAlg = HashAlgorithm.Sha1
)

Parameters

dkLen  Int32
Required length of key in bytes
pwdBytes  Byte
Password in byte format
salt  Byte
Salt in byte format
count  Int32
Iteration count
hashAlg  HashAlgorithm  (Optional)
Hash algorithm to use in HMAC PRF (default is SHA-1)

Return Value

Byte
Key in byte[] format
See Also