using System.Security.Cryptography;
public static void Main()
string text = "{\"amount\":\"150.00\",\"buttontext\":\"test\",\"control\":\"92\",\"currency\":\"PLN\",\"description\":\"czesnę - rata 1\",\"id\":\"782076\",\"paramsList\":\"amount;buttontext;control;currency;description;id;type\",\"type\":\"0\"}";
string key = "0spzSEImUtlN4zZB7NFVUxsrS9ui7nCc";
UTF8Encoding encoding = new UTF8Encoding();
Byte[] textBytes = encoding.GetBytes(text);
Byte[] keyBytes = encoding.GetBytes(key);
Encoding utf8 = Encoding.UTF8;
Encoding utf7 = Encoding.UTF7;
Encoding utf16 = Encoding.Unicode;
Encoding ascii = Encoding.ASCII;
textBytes = utf8.GetBytes(text);
keyBytes = utf8.GetBytes(key);
using (HMACSHA256 hash = new HMACSHA256(keyBytes))
hashBytes = hash.ComputeHash(textBytes);
Console.WriteLine("Hash chk: " + BitConverter.ToString(hashBytes).Replace("-", "").ToLower());