I am trying to retrieved md5 hashed password from the database but the code is erroring out when I tried to convert the hashed password to string
query = string.Format("SELECT password, active FROM users WHERE name = '{0}'",login);
command.CommandText = query;
SqlDataReader readerCheckIfExists = command.ExecuteReader();
string dbPassword = readerCheckIfExists["password"].ToString();
int active = Convert.ToInt32(readerCheckIfExists["active"]);
Go to the complete details ...