C# Класс SecurePasswordHasher, code

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Hash ( string password ) : string

Creates a hash from a password with 10000 iterations

Hash ( string password, int iterations ) : string

Creates a hash from a password

IsHashSupported ( string hashString ) : bool

Check if hash is supported

Verify ( string password, string hashedPassword ) : bool

verify a password against a hash

Описание методов

Hash() публичный статический Метод

Creates a hash from a password with 10000 iterations
public static Hash ( string password ) : string
password string the password
Результат string

Hash() публичный статический Метод

Creates a hash from a password
public static Hash ( string password, int iterations ) : string
password string the password
iterations int number of iterations
Результат string

IsHashSupported() публичный статический Метод

Check if hash is supported
public static IsHashSupported ( string hashString ) : bool
hashString string the hash
Результат bool

Verify() публичный статический Метод

verify a password against a hash
public static Verify ( string password, string hashedPassword ) : bool
password string the password
hashedPassword string the hash
Результат bool