C# 클래스 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.
파일 보기 프로젝트 열기: GridProtectionAlliance/openHistorian 1 사용 예제들

공개 메소드들

메소드 설명
AddUser ( string username, string password, int iterations = 4000, int saltSize = 32, HashMethod hashMethod = HashMethod.Sha256 ) : void
TryLookup ( byte username, ScramUserCredential &user ) : bool

메소드 상세

AddUser() 공개 메소드

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
리턴 void

TryLookup() 공개 메소드

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