Boost logo

Boost Users :

Subject: Re: [Boost-users] Fwd: [MPL] How can I make this occupy less space on disk?
From: Dominique Devienne (ddevienne_at_[hidden])
Date: 2011-05-17 12:15:12


On Tue, May 17, 2011 at 10:52 AM, Pedro d'Aquino
<pedro.daquino_at_[hidden]> wrote:
> 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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net