资 源 简 介
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 << 3; if(context->count[0] < (inputlen << 3)) context->count[1]++; context->count[1] += inputlen >> 29; if(inputlen >= partlen) { &n