摘要: c# 获取校验字 : private static string GetCheckSum(string Message) { byte initCheck = 0; byte[] bs = Encoding.GetEncoding("GB2312").GetBytes(Message); foreach (byte c in bs) { initCheck ^= c; } string a = Convert.ToString(initCheck, 16); return a; }c++ 则是:int CProc::GetChksum(const char *strMsg) 阅读全文
posted @ 2011-10-31 16:34 glf 阅读(229) 评论(0) 推荐(0) 编辑