Click or drag to resize

PbeKdf2(Int32, String, String, Int32, HashAlgorithm) Method

Derive a key in hex format of any length from a password with the salt in hex format.

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public static string Kdf2(
	int dkLen,
	string pwdStr,
	string saltHex,
	int count,
	HashAlgorithm hashAlg = HashAlgorithm.Sha1
)

Parameters

dkLen  Int32
Required length of key in bytes
pwdStr  String
Password
saltHex  String
Salt in hex format
count  Int32
Iteration count
hashAlg  HashAlgorithm  (Optional)
Hash algorithm to use in HMAC PRF (default is SHA-1)

Return Value

String
Key in hex format
See Also