Class Password
- Namespace
- SunamoShared.Crypting
- Assembly
- SunamoShared.dll
Provides methods for password generation, salting, and hashing.
public class Password
- Inheritance
-
Password
- Inherited Members
- Extension Methods
Constructors
Password(string, int)
Initializes a new instance of the Password class.
public Password(string password, int saltValue)
Parameters
Methods
ComputeSaltedHash()
Computes the salted hash of the password.
public string ComputeSaltedHash()
Returns
CreateRandomPassword(int)
Creates a random password of the specified length.
public static string CreateRandomPassword(int passwordLength)
Parameters
passwordLengthintThe desired password length.
Returns
CreateRandomSalt()
Creates a random salt value for password hashing.
public static int CreateRandomSalt()
Returns
CreateRandomStrongPassword()
Creates a random strong password with mixed character types.
public static string CreateRandomStrongPassword()