| 29 | namespace encrypt_config { |
| 30 | |
| 31 | bool isEncrypted(const utils::optional<std::string>& encryption_type) { |
| 32 | return encryption_type && !encryption_type->empty() && *encryption_type != "plaintext"; |
| 33 | } |
| 34 | |
| 35 | uint32_t encryptSensitivePropertiesInFile(ConfigFile& config_file, const utils::crypto::Bytes & encryption_key) { |
| 36 | return encryptSensitivePropertiesInFile(config_file, EncryptionKeys{{}, encryption_key}); |
no test coverage detected