Beispiel #1
0
 /// <summary>
 /// Will create a <see cref="SaltedPassword"/> using the given password and a cryptographically random salt of the specified length.
 /// </summary>
 /// <param name="hashAlgorithmType">The <see cref="System.Security.Cryptography.HashAlgorithm"/> type to use when creating the result hash.</param>
 /// <param name="password">The password to use when creating the result hash.</param>
 /// <param name="saltLength">The length of the byte array, which will be filled with cryptographically random values, to create for the salt.</param>
 public SaltedPassword(Type hashAlgorithmType,
                       System.Security.SecureString password,
                       int saltLength)
     : this(hashAlgorithmType, password, CryptographyHelper.GenerateCryptographicallyRandomArray(saltLength))
 {
 }