md5加密解密 string Md5Encode::Encode

时间:2020-10-18 05:41:32
【文件属性】:

文件名称:md5加密解密 string Md5Encode::Encode

文件大小:245KB

文件格式:ZIP

更新时间:2020-10-18 05:41:32

md5

std::(std::string src_info) { ParamDynamic param; param.ua_ = kA; param.ub_ = kB; param.uc_ = kC; param.ud_ = kD; std::string result; const char *src_data = src_info.c_str(); char *out_data_ptr = NULL; int total_byte = FillData(src_data, strlen(src_data), &out_data_ptr); char * data_BIT_OF_GROUP = out_data_ptr; for (int i = 0; i < total_byte / (BIT_OF_GROUP / BIT_OF_BYTE); ++i) { data_BIT_OF_GROUP += i*(BIT_OF_GROUP / BIT_OF_BYTE); RotationCalculate(data_BIT_OF_GROUP, param); } if (NULL != out_data_ptr) { delete[] out_data_ptr, out_data_ptr = NULL; } result.append(GetHexStr(param.ua_)); result.append(GetHexStr(param.ub_)); result.append(GetHexStr(param.uc_)); result.append(GetHexStr(param.ud_)); return result; }


【文件预览】:
test_md52
----test_md52()
--------md5_2.h(2KB)
--------main.cpp(333B)
--------test_md52.vcproj(4KB)
--------md5_2.cpp(7KB)
--------Debug()
--------test_md52.vcproj.BAIYUFEI-PC.Administrator.user(1KB)
----test_md52.suo(15KB)
----test_md52.sln(893B)
testMD5
----testMD5.sln(887B)
----testMD5()
--------main.cpp(311B)
--------testMD5.vcproj.BAIYUFEI-PC.Administrator.user(1KB)
--------testMD5.vcproj(4KB)
--------md5_3.cpp(9KB)
--------md5_3.h(1KB)
--------Debug()
----testMD5.suo(11KB)

网友评论

  • 只有加密,没有解密