C# 클래스 GSF.Security.Authentication.SrpUserCredentials

Provides simple password based authentication that uses Secure Remote Password.
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, byte verifier, byte passwordSalt, int iterations, SrpStrength strength ) : void

Adds the specified user to the credential database.

AddUser ( string username, string password, SrpStrength strength = SrpStrength.Bits1024, int saltSize = 32, int iterations = 4000 ) : void

Adds the specified user to the credentials database.

Lookup ( string username ) : SrpUserCredential

Looks up the username from the database.

메소드 상세

AddUser() 공개 메소드

Adds the specified user to the credential database.
public AddUser ( string username, byte verifier, byte passwordSalt, int iterations, SrpStrength strength ) : void
username string
verifier byte
passwordSalt byte
iterations int
strength SrpStrength
리턴 void

AddUser() 공개 메소드

Adds the specified user to the credentials database.
public AddUser ( string username, string password, SrpStrength strength = SrpStrength.Bits1024, int saltSize = 32, int iterations = 4000 ) : void
username string
password string
strength SrpStrength
saltSize int
iterations int
리턴 void

Lookup() 공개 메소드

Looks up the username from the database.
public Lookup ( string username ) : SrpUserCredential
username string
리턴 SrpUserCredential