C# Class BlottoBeats.Library.Authentication.Credentials

Show file Open project: Zwolf11/BlottoBeats Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Credentials ( string username, string password ) : System
GenerateHash ( ) : string

Generates a new hash for the password

Verify ( string hash ) : bool

Verifies that the specified password matches the given hash

Method Details

Credentials() public method

public Credentials ( string username, string password ) : System
username string
password string
return System

GenerateHash() public method

Generates a new hash for the password
public GenerateHash ( ) : string
return string

Verify() public method

Verifies that the specified password matches the given hash
public Verify ( string hash ) : bool
hash string Hash to check
return bool