* Hexencodes a string * @param str the string to be hexencoded * @param uppercase whether the hexencoded string should be upper case * @return the hexencoded string */
| 411 | * @return the hexencoded string |
| 412 | */ |
| 413 | inline static std::string to_hex(const std::string& str, bool uppercase = false) { |
| 414 | return to_hex(reinterpret_cast<const uint8_t*>(str.data()), str.length(), uppercase); |
| 415 | } |
| 416 | |
| 417 | /** |
| 418 | * Hexencodes a vector of bytes |