MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / stringToBytes

Function stringToBytes

libminifi/src/utils/EncryptionUtils.cpp:34–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32namespace crypto {
33
34Bytes stringToBytes(const std::string& text) {
35 return Bytes(text.begin(), text.end());
36}
37
38std::string bytesToString(const Bytes& bytes) {
39 return std::string(reinterpret_cast<const char*>(bytes.data()), bytes.size());

Callers 6

getEncryptionKeysMethod · 0.85
DecryptorTests.cppFile · 0.85
encryptFunction · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected