public static bool VerifyPassword(string user, string password) { string PASS = Connectimimedb.GetSalt(user, false); // Console.WriteLine(PASS); string testhash = GjeneroSalt.GjeneroSHA256Hashin(password, PASS); // Console.WriteLine(testhash); string dbHash = Connectimimedb.GetSalt(user, true); if (dbHash == testhash) { return(true); } else { return(false); } }