码迷,mamicode.com
首页 > 其他好文 > 详细

CCUserDefault 数据加密解密

时间:2014-10-16 16:12:02      阅读:181      评论:0      收藏:0      [点我收藏+]

标签:http   java   for   sp   数据   div   2014   html   amp   

//加密
void HelloWorld::encode(std::string &str) 
    for(int i = 0; i < str.length(); i++) { 
        int ch = str[i]; 
        ch = ch ^ 1
        str[i] = ch; 
    }
 
//解密
void HelloWorld::decode(std::string &str) 
    for(int i = 0; i < str.length(); i++) { 
        int ch = str[i]; 
        ch = ch ^ 1
        str[i] = ch; 
    }
}

 

转自:http://www.2cto.com/kf/201406/306946.html

CCUserDefault 数据加密解密

标签:http   java   for   sp   数据   div   2014   html   amp   

原文地址:http://www.cnblogs.com/C-Plus-Plus/p/4028753.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!