示例#1
0
 public static string sign(string key, string timestamp, string nonce)
 {
     try
     {
         return(Md5Helper.Md5Hex(key + nonce + timestamp).ToLower());
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#2
0
 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;
     }
 }