public string GenerateSignature(out long nonce) { nonce = Nonce.Next(); var bytes = Encoding.UTF8.GetBytes($"{nonce}{UserId}{ApiKey}"); var hash = _hmac.ComputeHash(bytes); return(string.Concat(hash.Select(b => b.ToString("X2")))); }