MCPcopy Create free account
hub / github.com/EasyIME/PIME / MD5String

Function MD5String

installer/md5dll/MD5.cpp:116–126  ·  view source on GitHub ↗

MD5String: Performs the MD5 algorithm on a char* string, returning the results as a char*.

Source from the content-addressed store, hash-verified

114// MD5String: Performs the MD5 algorithm on a char* string, returning
115// the results as a char*.
116char* MD5String(char* szString)
117{
118 int nLen = lstrlen(szString);
119 md5 alg;
120
121 alg.Update((unsigned char*)szString, (unsigned int)nLen);
122 alg.Finalize();
123
124 return PrintMD5(alg.Digest());
125
126}
127#endif
128
129#if defined(ENABLE_GETMD5FILE)

Callers 2

GetMD5StringFunction · 0.85
GetMD5RandomFunction · 0.85

Calls 4

PrintMD5Function · 0.85
UpdateMethod · 0.80
FinalizeMethod · 0.80
DigestMethod · 0.80

Tested by

no test coverage detected