C# Class GSF.Security.Authentication.ScramUserCredentials

Provides simple password based authentication that uses SCRAM.
It is safe to store the user's credential on the server. This is a zero knowledge password proof, meaning if this database is compromised, a brute force attack is the only way to reveal the password.
Datei anzeigen Open project: GridProtectionAlliance/openHistorian Class Usage Examples

Public Methods

Method Description
AddUser ( string username, string password, int iterations = 4000, int saltSize = 32, HashMethod hashMethod = HashMethod.Sha256 ) : void
TryLookup ( byte username, ScramUserCredential &user ) : bool

Method Details

AddUser() public method

public AddUser ( string username, string password, int iterations = 4000, int saltSize = 32, HashMethod hashMethod = HashMethod.Sha256 ) : void
username string
password string
iterations int
saltSize int
hashMethod HashMethod
return void

TryLookup() public method

public TryLookup ( byte username, ScramUserCredential &user ) : bool
username byte
user ScramUserCredential
return bool