Instead of having the password set in the config.json, prompt the user at runtime for the smtp password using a secure string, pass it off to the CURLOPT and then clear the string/memory of the password.
This means encryption.cpp/h will be redundant and can be removed.
Instead of having the password set in the config.json, prompt the user at runtime for the smtp password using a secure string, pass it off to the CURLOPT and then clear the string/memory of the password.
This means encryption.cpp/h will be redundant and can be removed.