示例#1
0
 /// <summary>
 /// 客户本地加密的方法,通过2个密匙进行加密
 /// </summary>
 /// <param name="data">加密的数据</param>
 /// <returns>返回加密后的字符串</returns>
 public static string EncodeClientLocal(string data)
 {
     EncAndDec ed = new EncAndDec();
     return ed.Encode(data, ClientLocal_KEY_64, ClientLocal_IV_64);
 }
示例#2
0
 /// <summary>
 /// 加密的方法,通过2个密匙进行加密
 /// </summary>
 /// <param name="data">加密的数据</param>
 /// <returns>返回加密后的字符串</returns>
 public static string Encode(string data)
 {
     EncAndDec ed = new EncAndDec();
     return ed.Encode(data, KEY_64, IV_64);
 }