摘要:
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) 阅读全文