Esempio n. 1
0
 /// <summary>
 /// 返回前端前数据加密
 /// </summary>
 /// <param name="Text"></param>
 /// <returns></returns>
 public static string EncryptData(string Text)
 {
     return(AESS.Encrypt(Text).Replace("+", "$").Replace("/", "!").Replace("%", "-"));
 }
Esempio n. 2
0
 /// <summary>
 /// 解密前端加密的数据
 /// </summary>
 /// <param name="Text"></param>
 /// <returns></returns>
 public static string DecryptData(string Text)
 {
     return(AESS.Decrypt(Text.Replace("$", "+").Replace("!", "/").Replace("-", "%")));
 }