MCPcopy Create free account
hub / github.com/comaps/comaps / CalculateBase64

Method CalculateBase64

libs/coding/sha1.cpp:63–67  ·  view source on GitHub ↗

static

Source from the content-addressed store, hash-verified

61
62// static
63std::string SHA1::CalculateBase64(std::string const & filePath)
64{
65 auto const sha1 = Calculate(filePath);
66 return base64::Encode(std::string_view(reinterpret_cast<char const *>(sha1.data()), sha1.size()));
67}
68
69// static
70SHA1::Hash SHA1::CalculateForString(std::string_view str)

Callers

nothing calls this directly

Calls 3

EncodeFunction · 0.70
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected