MD5 md5 = new MD5CryptoServiceProvider();
UTF8Encoding utf = new UTF8Encoding();
byte []password = utf.GetBytes(pass);
byte []passwrod1 = md5.ComputeHash(password);
pass = BitConverter.ToString(passwrod1);
string sql = "insert into userinfo values('" + name + "','"+ pass +"')";
SqlCommand cmd = new SqlCommand(sql,con);
return cmd.ExecuteNonQuery();
UTF8Encoding utf = new UTF8Encoding();
byte []password = utf.GetBytes(pass);
byte []passwrod1 = md5.ComputeHash(password);
pass = BitConverter.ToString(passwrod1);
string sql = "insert into userinfo values('" + name + "','"+ pass +"')";
SqlCommand cmd = new SqlCommand(sql,con);
return cmd.ExecuteNonQuery();