I am looking for a way to store a string in a C++ program, preferably in code, without making it visible in a hex editor that opens the executable. I can think of many different ways to do this, but if any simple standard way of doing this exists, that would be better. I don't know much about “secure strings” but these seem to be focused on zeroing memory after the string goes out of scope, which is not the primary issue I am trying to solve.
How can I prevent a string from being visible when a program is opened in a hex editor or similar tool?