摘要: //新浪微博登录密码加密函数//password密码明文//servertime提交的参数之一//nonce提交的参数之一//encode_password输出的加密后的16进制字符串,40个字符//返回encode_password的长度,失败则返回0PASSENCODE_APIintSinaSha1Encode(char*password,char*servertime,char*nonce,char*encode_password){if(encode_password){encode_password[0]=NULL;//定义要sha1的字符串charpTemp[400]={0};// 阅读全文
posted @ 2012-09-07 16:00 代码示例 阅读(1010) 评论(0) 推荐(0) 编辑