I had created a WinForms application with a login system in vs 2019, and now I want to hash the password entered by the user before storing it in the database. But it will exist three errors :
Code:
public static string getHash(string source)
{
using (SHA256 sha256Hash = SHA256.Create())
{
string hash = getsha256Hash(sha256Hash, source);
return getsha256Hash(sha256Hash, source);
}
}