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.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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