#include "utils.h" #include #include namespace utils { std::string convertBinToHexstr(const std::vector& bin) { std::stringstream buffer; for (auto byte : bin) { buffer << std::hex << std::setfill('0'); buffer << std::setw(2) << static_cast(byte); } return buffer.str(); } }