public static string sign(string key, string timestamp, string nonce) { try { return(Md5Helper.Md5Hex(key + nonce + timestamp).ToLower()); } catch (Exception ex) { throw ex; } }
public static string sign(string key, string timestamp, string nonce, string body) { try { string raw = body + key + nonce + timestamp; string sign = Md5Helper.Md5Hex(raw).ToLower(); return(sign); } catch (Exception ex) { throw ex; } }