CryptoSys PKI Pro Manual

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

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

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
Type: HashAlgorithm
Hash algorithm to use in HMAC PRF (default is SHA-1)

Return Value

Key in hex format

See Also

VB6/C equivalent: PBE_Kdf2Hex

[Contents] [Index]

[PREV: Pbe.Kdf2 Method (Int32, Byte, Byte, Int32, HashAlgorithm)...]   [Contents]   [Index]   
   [NEXT: Pbe.Scrypt Method (Int32, Byte, Byte, Int32, Int32, Int32)...]

Copyright © 2004-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-09-23T07:52:09Z.