using System.Security.Cryptography;
public static void Main()
var sharString = "amount=1275¤cy=mvr&apiKey=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBJZCI6IjIwYzZhNDBlLTE3NzQtNDVmMC1iNTAwLTkzMGEwMWVhNjVmMiIsImNvbXBhbnlJZCI6IjVmMzM3YzEwNWY4MjkwMDAwNzE3ZTUzOCIsImlhdCI6MTY1NzQ0NzYyNywiZXhwIjo0ODEzMTIxMjI3fQ.yL4JsLHSxbmfIsmT9OBoF801l81oIOLxIF5UJs0JNFg";
Console.WriteLine(sharString);
Console.WriteLine("721594025b13647231327cc2b5284def0b66bcde");
using var sha1 = SHA1.Create();
var sigHex = Convert.ToHexString(sha1.ComputeHash(Encoding.UTF8.GetBytes(sharString)));
Console.WriteLine(sigHex);
using (SHA1Managed sha1s = new SHA1Managed())
signature = Convert.ToHexString(sha1s.ComputeHash(Encoding.UTF8.GetBytes(sharString)));
Console.WriteLine(signature);
using (System.Security.Cryptography.MD5 md5 = System.Security.Cryptography.MD5.Create())
byte[] inputBytes = System.Text.Encoding.UTF8.GetBytes(sharString);
byte[] hashBytes = md5.ComputeHash(inputBytes);
Console.WriteLine(Convert.ToHexString(hashBytes));
StringBuilder sb = new System.Text.StringBuilder();
for (int i = 0; i < hashBytes.Length; i++)
sb.Append(hashBytes[i].ToString("X2"));
Console.WriteLine(sb.ToString());
var sharString1 = "amount=1275¤cy=mvr&apiKey=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9";
var sharString2 = "amount=1275¤cy=mvr&apiKey=yL4JsLHSxbmfIsmT9OBoF801l81oIOLxIF5UJs0JNFg";
var sharString3 = "amount=1275¤cy=mvr&apiKey=eyJhcHBJZCI6IjIwYzZhNDBlLTE3NzQtNDVmMC1iNTAwLTkzMGEwMWVhNjVmMiIsImNvbXBhbnlJZCI6IjVmMzM3YzEwNWY4MjkwMDAwNzE3ZTUzOCIsImlhdCI6MTY1NzQ0NzYyNywiZXhwIjo0ODEzMTIxMjI3fQ";
var sharString4 = "1275mvreyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBJZCI6IjIwYzZhNDBlLTE3NzQtNDVmMC1iNTAwLTkzMGEwMWVhNjVmMiIsImNvbXBhbnlJZCI6IjVmMzM3YzEwNWY4MjkwMDAwNzE3ZTUzOCIsImlhdCI6MTY1NzQ0NzYyNywiZXhwIjo0ODEzMTIxMjI3fQ.yL4JsLHSxbmfIsmT9OBoF801l81oIOLxIF5UJs0JNFg";
Console.WriteLine(Convert.ToHexString(sha1.ComputeHash(Encoding.UTF8.GetBytes(sharString1))));
Console.WriteLine(Convert.ToHexString(sha1.ComputeHash(Encoding.UTF8.GetBytes(sharString2))));
Console.WriteLine(Convert.ToHexString(sha1.ComputeHash(Encoding.UTF8.GetBytes(sharString3))));
Console.WriteLine(Convert.ToHexString(sha1.ComputeHash(Encoding.UTF8.GetBytes(sharString4))));