private string CreateSignature(string secret, string command) { byte[] bites = new HMACSHA512(Encoding.UTF8.GetBytes(secret)).ComputeHash(Encoding.UTF8.GetBytes(command)); return(string.Concat(bites.Select(b => b.ToString("X2")))); }