Метод | Описание | |
---|---|---|
PasswordMethods ( ) : System | ||
saltAndHashPassword ( string password ) : string | ||
verifyPassword ( string databaseHash, string userPassword ) : bool |
Метод | Описание | |
---|---|---|
GenerateSaltedHash ( byte plainText, byte salt ) : byte[] | ||
RandomString ( int size ) : string |
public saltAndHashPassword ( string password ) : string | ||
password | string | |
Результат | string |
public verifyPassword ( string databaseHash, string userPassword ) : bool | ||
databaseHash | string | |
userPassword | string | |
Результат | bool |