This documentation is archived and is not being maintained.

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

.NET Framework 1.1

Initializes a new instance of the PasswordDeriveBytes class with the password, key salt, hash name, and number of iterations 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 _
public PasswordDeriveBytes(
   string strPassword,
 byte[] rgbSalt,
 string strHashName,
 int iterations
public: PasswordDeriveBytes(
   String* strPassword,
 unsigned char rgbSalt __gc[],
 String* strHashName,
 int iterations
public function PasswordDeriveBytes(
   strPassword : String,
 rgbSalt : Byte[],
 strHashName : String,
 iterations : int


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.


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