Method | Description | |
---|---|---|
GenerateSalt ( int explicitIterations = null ) : string |
Generates a salt that can be used to generate a password hash. The salt is a combination of a block of bytes to represent the salt entropy and an integer that represents the interation count to feed into the RFC289 algorithm used to derive the password hash. The iterations count is used to slow down the hash generating alrogithm to mitigate brute force and rainbow table attacks.
|
|
Hash ( string value, string salt ) : string |
Generates the password hash from the password and salt. THe salt must be in the format iterations.salt.
|
public static GenerateSalt ( int explicitIterations = null ) : string | ||
explicitIterations | int | The number of iterations used to derive the password bytes. Must be greater than the constant specifying the minimum iterations. |
return | string |
public static Hash ( string value, string salt ) : string | ||
value | string | The value to generate a hash for. |
salt | string | The salt (and iteration count) to generate the hash with. |
return | string |