Pbkdf2ComputeSaltedPassword Method
Implements a
Pbkdf2 algorthim with a user definded MAC method.
Namespace: SnapDB.SecurityAssembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public static byte[] ComputeSaltedPassword(
HmacMethod method,
byte[] password,
byte[] salt,
int iterations,
int length
)
Public Shared Function ComputeSaltedPassword (
method As HmacMethod,
password As Byte(),
salt As Byte(),
iterations As Integer,
length As Integer
) As Byte()
public:
static array<unsigned char>^ ComputeSaltedPassword(
HmacMethod method,
array<unsigned char>^ password,
array<unsigned char>^ salt,
int iterations,
int length
)
SnapDB.Security.Pbkdf2.ComputeSaltedPassword = function(method, password, salt, iterations, length);
- method HmacMethod
- the HMAC method to use.
- password Byte
- the password to use
- salt Byte
- the salt. Must be at least 64-bit
- iterations Int32
- the number of iterations. Must be at least 1000.
- length Int32
- the number of bytes to return
Byte
A salted password based on the specified length.