Hi Pedro,
Hello,
I'm using Boost.MPL to obfuscate sensitive strings during compilation.
I wrote a class called obf_string which can be used in the following
way:
obf_string<'my_d','atab','ase_','pass','word'> password;
connect_to_db( password.unobfuscate() );
If someone runs strings.exe on this executable, they will not see
"my_database_password" listed there, because it has been XORed with a
binary mask. This approach has several benefits over e.g.
preprocessing all the source files with a tool that encrypts all
strings. The most significant is that I can easily see and change the
string.