C# Class SpeakFriend.Utilities.Password

Show file Open project: teamaton/speak-lib Class Usage Examples

Public Methods

Method Description
ComputeSaltedHash ( string strPassword ) : string
CreateRandomPassword ( int passwordLength ) : string
CreateRandomSalt ( ) : int
Matches ( string plainTextPassword ) : bool

Checks the given plain text password against the saved salt and salted hash.

Password ( string strPassword ) : System

Protected Methods

Method Description
Password ( ) : System

Method Details

ComputeSaltedHash() public method

public ComputeSaltedHash ( string strPassword ) : string
strPassword string
return string

CreateRandomPassword() public static method

public static CreateRandomPassword ( int passwordLength ) : string
passwordLength int
return string

CreateRandomSalt() public static method

public static CreateRandomSalt ( ) : int
return int

Matches() public method

Checks the given plain text password against the saved salt and salted hash.
public Matches ( string plainTextPassword ) : bool
plainTextPassword string
return bool

Password() protected method

protected Password ( ) : System
return System

Password() public method

public Password ( string strPassword ) : System
strPassword string
return System