17 May
2011
17 May
'11
4:15 p.m.
On Tue, May 17, 2011 at 10:52 AM, Pedro d'Aquino
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;
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.
[Slightly OT] Out of curiosity, isn't there some remnant of the obf_string<'my_d','atab','ase_','pass','word'> instantiated template in the type system that's visible via demangling the generated binaries, for example via nm or depends.exe? --DD