This documentation is archived and is not being maintained.

PasswordDeriveBytes Constructor (String, Byte[], String, Int32, CspParameters)

.NET Framework 1.1

Initializes a new instance of the PasswordDeriveBytes class with the password, key salt, hash name, number of iterations, and cryptographic service provider (CSP) parameters to use to derive the key.

[Visual Basic]
Public Sub New( _
   ByVal strPassword As String, _
   ByVal rgbSalt() As Byte, _
   ByVal strHashName As String, _
   ByVal iterations As Integer, _
   ByVal cspParams As CspParameters _
public PasswordDeriveBytes(
   string strPassword,
 byte[] rgbSalt,
 string strHashName,
 int iterations,
 CspParameters cspParams
public: PasswordDeriveBytes(
   String* strPassword,
 unsigned char rgbSalt __gc[],
 String* strHashName,
 int iterations,
 CspParameters* cspParams
public function PasswordDeriveBytes(
   strPassword : String,
 rgbSalt : Byte[],
 strHashName : String,
 iterations : int,
 cspParams : CspParameters


The password for which to derive the key.
The key salt to use to derive the key.
The name of the hash algorithm for the operation.
The number of iterations for the operation.
The CSP parameters for the operation.


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

See Also

PasswordDeriveBytes Class | PasswordDeriveBytes Members | System.Security.Cryptography Namespace | PasswordDeriveBytes Constructor Overload List | Cryptographic Services