亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

C#最簡單的字符串加密解密方法

 更新時(shí)間:2015年05月08日 09:48:36   投稿:junjie  
這篇文章主要介紹了C#最簡單的字符串加密解密方法,本文直接給出實(shí)例代碼,需要的朋友可以參考下
public static string encode(string str)
    {
      string htext = "";
 
      for (int i = 0; i < str.Length; i++)
      {
        htext = htext + (char)(str[i] + 10 - 1 * 2);
      }
      return htext;
    }
 
    public static string decode(string str)
    {
      string dtext = "";
 
      for (int i = 0; i < str.Length; i++)
      {
        dtext = dtext + (char)(str[i] - 10 + 1 * 2);
      }
      return dtext;
    }

相關(guān)文章

最新評(píng)論