Interface IPasswordHashing
Password hashing service.
public interface IPasswordHashing
Methods
HashPassword(string, PepperBrand?)
Hashes a password to make it feasible for insertion into a db.
Task<string> HashPassword(string password, PepperBrand? pepperBrand = null)
Parameters
passwordstringThe password to hash.
pepperBrandPepperBrand[OPTIONAL] Pepper brand to append to the PW.
Returns
VerifyPassword(string, User)
Verifies a User's password.
Task<bool> VerifyPassword(string password, User user)
Parameters
Returns
VerifyPassword(string, string)
Verifies a password against a hash.
Task<bool> VerifyPassword(string password, string hash)