CryptoSys API Library Manual

Pbe.Kdf2 Method (Int32, String, String, Int32, HashAlgorithm)

Derives a key in hex format of any length from a password with the salt in hex format using specified HMAC algorithm

Syntax

[C#]
public static string Kdf2(
	int dkLen,
	string pwdStr,
	string saltHex,
	int count,
	HashAlgorithm hashAlg
)
[VB.NET]
Public Shared Function Kdf2 ( _
	dkLen As Integer, _
	pwdStr As String, _
	saltHex As String, _
	count As Integer, _
	hashAlg As HashAlgorithm _
) As String

Parameters

dkLen
Required length of key in bytes
pwdStr
Password
saltHex
Salt in hex format
count
Iteration count
hashAlg
Hash algorithm to use in HMAC PRF

Return Value

Key in hex format

[Contents] [Index]

[HOME]   [NEXT: Pc1.Encrypt Method (Byte, Byte)...]

Copyright © 2001-11 D.I. Management Services Pty Ltd. All rights reserved.