I'm using ASP.NET Core 2.2 with EF Core. I have a User
class which looks like this:
public class User : IdentityUser
{
public string FirstName { get; set; }
public string LastName { get; set; }
}
I would like to add a PIN
property which will act as a secondary password for extra-secure operations. The user logs into the system, but if he wants to do something more special (like send money), he will be prompted to enter his PIN.
My question is what is the most easy way to hash a string, so I don't store the PIN in plain text in the db?