using System.Collections.Generic;
using System.Security.Cryptography;
public static void Main(string[] args)
StringBuilder postParams = new StringBuilder();
Dictionary<string, string> hashParams = new Dictionary<string, string>();
hashParams.Add("secureLogin", "pix_b1x2");
hashParams.Add("symbol", "vs20fruitsw");
hashParams.Add("language", "it");
hashParams.Add("token", "503D8F8678AE55E57679EB7F6721E41C");
hashParams.Add("currency", "EUR");
hashParams.Add("technology", "H5");
string hash = toMD5(string.Concat(postParams.ToString(), "Cd15@c47a_be69"));
postParams.Append(string.Concat("&hash=", hash));
System.Console.WriteLine(postParams.ToString());
public static string toMD5(string source) {
using (var md5Hash = MD5.Create()) {
var sourceBytes = Encoding.UTF8.GetBytes(source);
var hashBytes = md5Hash.ComputeHash(sourceBytes);
var hash = BitConverter.ToString(hashBytes).Replace("-", string.Empty);