md5加密c++跨平台
代码说明:
md5加密实现,c++ 跨平台,linux windows 都可以用static void MD5Init(MD5_CTX *context){ context->count[0] = 0; context->count[1] = 0; context->state[0] = 0x67452301; context->state[1] = 0xEFCDAB89; context->state[2] = 0x98BADCFE; context->state[3] = 0x10325476;}static void MD5Update(MD5_CTX *context, unsigned char *input, unsigned int inputlen){ unsigned int i = 0; unsigned int index = 0; unsigned int partlen = 0; index = (context->count[0] >> 3) & 0x3F; partlen = 64 - index; context->count[0] += inputlen count[0] < (inputlen count[1]++; context->count[1] += inputlen >> 29; if(inputlen >= partlen) { &n
下载说明:请别用迅雷下载,失败请重下,重下不扣分!