MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / toHexString

Function toHexString

Tactility/Source/app/chat/ChatSettings.cpp:36–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34static constexpr auto* IV_SEED = "chat_key";
35
36static std::string toHexString(const uint8_t* data, size_t length) {
37 std::stringstream stream;
38 stream << std::hex;
39 for (size_t i = 0; i < length; ++i) {
40 stream << std::setw(2) << std::setfill('0') << static_cast<int>(data[i]);
41 }
42 return stream.str();
43}
44
45static bool readHex(const std::string& input, uint8_t* buffer, size_t length) {
46 if (input.size() != length * 2) {

Callers 1

encryptKeyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected