MD5String: Performs the MD5 algorithm on a char* string, returning the results as a char*.
| 114 | // MD5String: Performs the MD5 algorithm on a char* string, returning |
| 115 | // the results as a char*. |
| 116 | char* 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) |
no test coverage detected