Méthode | Description | |
---|---|---|
PasswordMethods ( ) : System | ||
saltAndHashPassword ( string password ) : string | ||
verifyPassword ( string databaseHash, string userPassword ) : bool |
Méthode | Description | |
---|---|---|
GenerateSaltedHash ( byte plainText, byte salt ) : byte[] | ||
RandomString ( int size ) : string |
public saltAndHashPassword ( string password ) : string | ||
password | string | |
Résultat | string |
public verifyPassword ( string databaseHash, string userPassword ) : bool | ||
databaseHash | string | |
userPassword | string | |
Résultat | bool |