**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
**C#**
``` C#
public static Password Pbkdf2(
string password,
byte[] salt
)
```
**F#**
``` F#
static member Pbkdf2 :
password : string *
salt : byte[] -> Password
```
#### Parameters
<dl><dt><ahref="https://learn.microsoft.com/dotnet/api/system.string"target="_blank"rel="noopener noreferrer">String</a></dt><dd>The clear text password to be hashed.</dd><dt><ahref="https://learn.microsoft.com/dotnet/api/system.byte"target="_blank"rel="noopener noreferrer">Byte</a>[]</dt><dd>A random value used to add an additional layer of security to the generated hash.</dd></dl>
This method uses the PBKDF2 (Password-Based Key Derivation Function 2) algorithm to generate a new password hash. The algorithm iteratively applies a pseudorandom function to the password and salt, which increases the security of the resulting hash.