DocumentManager/Utils/PasswordHash.cs
/// <summary>
/// Computes the PBKDF2-SHA1 hash of a password.
/// </summary>
/// <param name="password">The password to hash.</param>
/// <param name="salt">The salt.</param>
/// <param name="iterations">The PBKDF2 iteration count.</param>
/// <param name="outputBytes">The length of the hash to generate, in bytes.</param>
/// <returns>A hash of the password.</returns>
Computes the PBKDF2-SHA1 hash of a password.
Computes the PBKDF2 - SHA1 hash of a password .
private static byte[] PBKDF2(string password, byte[] salt, int iterations, int outputBytes) {
			Rfc2898DeriveBytes pbkdf2 = new Rfc2898DeriveBytes(password, salt);
			pbkdf2.IterationCount = iterations;
			return pbkdf2.GetBytes(outputBytes);
		}
private static byte [ ] PBKDF2 ( string password , byte [ ] salt , int iterations , int outputBytes ) { Rfc2898DeriveBytes pbkdf2 = new Rfc2898DeriveBytes ( password , salt ) ; pbkdf2 . IterationCount = iterations ; return pbkdf2 . GetBytes ( outputBytes ) ; }
Computes the PBKDF2-SHA1 hash of a password.
Computes the PBKDF2 - SHA1 hash of a password .
A hash of the password.
A hash of the password .
password
string
The password to hash.
The password to hash .
salt
byte[]
None
iterations
int
The PBKDF2 iteration count.
The PBKDF2 iteration count .
outputBytes
int
The length of the hash to generate, in bytes.
The length of the hash to generate in bytes .