| 248 | } |
| 249 | |
| 250 | std::string ToMd5String(const std::vector<uint8_t> &md5) { |
| 251 | std::ostringstream temp; |
| 252 | for (auto byte : md5) { |
| 253 | temp << std::hex << std::setw(2) << std::setfill('0') << std::uppercase |
| 254 | << static_cast<int>(byte); |
| 255 | } |
| 256 | return temp.str(); |
| 257 | } |
| 258 | /* |
| 259 | bool OpenMdfFile(FILE *&file, const std::string &filename, |
| 260 | const std::string &mode) { |