BenSelect Documentation
Pbkdf2 Method
See Also  Send Feedback
Selerix.Foundation.Security Namespace > KeyDerivation Class : Pbkdf2 Method
password
The password from which to derive the key.
salt
The salt to be used during the key derivation process.
prf
The pseudo-random function to be used in the key derivation process.
iterationCount
The number of iterations of the pseudo-random function to apply during the key derivation process.
numBytesRequested
The desired length (in bytes) of the derived key.
Performs key derivation using the PBKDF2 algorithm.

Syntax

JScript 
public static function Pbkdf2( 
   password : String,
   salt : byte[],
   prf : KeyDerivationPrf,
   iterationCount : int,
   numBytesRequested : int
) : byte[];

Parameters

password
The password from which to derive the key.
salt
The salt to be used during the key derivation process.
prf
The pseudo-random function to be used in the key derivation process.
iterationCount
The number of iterations of the pseudo-random function to apply during the key derivation process.
numBytesRequested
The desired length (in bytes) of the derived key.

Return Value

The derived key.

Remarks

The PBKDF2 algorithm is specified in RFC 2898.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2024 All Rights Reserved.