I'm developing a C++ application that includes extensive logging and I noticed that the strings in the log messages are visible in plain text when opening the binary from Windows process manager. This may reveal the logic behind the application, or at least function names that show what mathematical formulas are used.
I'm studying the alternatives about what to do in this situation and I thought about using a string class in the logger that at compile time will convert std::wstring parameters into hex arrays (if that is possible), however I'm interested in other kind of solutions.
Is there any idiomatic way of getting through this? My knowledge of templates is not very extensive so I don't feel like I can take an informed decision going down that road...
Additionally, is not C++ compiled to machine code? How is it possible that those strings are visible in the .exe?