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

Function decrypt

libminifi/src/utils/EncryptionUtils.cpp:109–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109std::string decrypt(const std::string& input, const Bytes& key) {
110 auto data = parseEncrypted(input);
111 Bytes plaintext = decryptRaw(data.ciphertext_plus_mac, key, data.nonce);
112 return bytesToString(plaintext);
113}
114
115EncryptedData parseEncrypted(const std::string& input) {
116 std::vector<std::string> nonce_and_rest = utils::StringUtils::split(input, EncryptionType::separator());

Callers 4

encryptFlowConfigMethod · 0.85
decryptMethod · 0.85

Calls 3

parseEncryptedFunction · 0.85
decryptRawFunction · 0.85
bytesToStringFunction · 0.85

Tested by

no test coverage detected