Export (0) Print
Expand All

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 _
)
[C#]
public PasswordDeriveBytes(
   string strPassword,
 byte[] rgbSalt,
 string strHashName,
 int iterations
);
[C++]
public: PasswordDeriveBytes(
   String* strPassword,
 unsigned char rgbSalt __gc[],
 String* strHashName,
 int iterations
);
[JScript]
public function PasswordDeriveBytes(
   strPassword : String,
 rgbSalt : Byte[],
 strHashName : String,
 iterations : int
);

Parameters

strPassword
The password for which to derive the key.
rgbSalt
The key salt to use to derive the key.
strHashName
The name of the hash algorithm for the operation.
iterations
The number of iterations for the operation.

Requirements

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

Show:
© 2014 Microsoft