/// <summary> /// 加密 /// </summary> /// <param name="str"></param> /// <returns></returns> public static string EncryptString(string str) { if (string.IsNullOrEmpty(str)) { return(string.Empty); } TripleDes l = new TripleDes(); return(l.Encode(str)); }