Table of Contents

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

password string

The password string.

saltValue int

The salt value for hashing.

Methods

ComputeSaltedHash()

Computes the salted hash of the password.

public string ComputeSaltedHash()

Returns

string

CreateRandomPassword(int)

Creates a random password of the specified length.

public static string CreateRandomPassword(int passwordLength)

Parameters

passwordLength int

The desired password length.

Returns

string

CreateRandomSalt()

Creates a random salt value for password hashing.

public static int CreateRandomSalt()

Returns

int

CreateRandomStrongPassword()

Creates a random strong password with mixed character types.

public static string CreateRandomStrongPassword()

Returns

string