/// <summary> /// 生成1分钟过期的加密字符串 /// </summary> /// <param name="key">需要传递的值</param> /// <param name="attachKey">约定的附加字符串</param> /// <returns></returns> public static string GetDesEncryptMinite(int key, string attachKey) { string t = CFun.GetTimeStamp(DateTime.Now, true); decimal t1 = Convert.ToDecimal(t); t1 = Math.Round(t1 / 60); t = t1.ToString(); t1 = t1 + key; string v = CFun.DESEncrypt(attachKey + t1.ToString() + "," + t, t); return(v); }