Boost logo

Boost :

Subject: Re: [boost] [encrypted strings]
From: Sohail Somani (sohail_at_[hidden])
Date: 2009-04-27 11:31:10


There is an implementation of a mpl::string by Eric Neibler somewhere.

The only way you can prevent it from appearing is by including the
deciphered text in the type. Once you have "secret" anywhere, it will
normally be in the executable unless you are extremely lucky.

What kind of encryption would you use?

Sid Sacek wrote:
> Does boost have any compile-time classes for string encryption? Is it
> even possible?
>
>
>
> When a hacker dumps an executable, they can see all of the strings the
> program might use, and some of those strings may contain sensitive
> information. Does boost have any classes that can encode the strings at
> compile-time? Ideally, the third string in the code below would never
> compile the "secret" string into the final binary.
>
>
>
> Regards,
>
> -Sid
>
>
>
> void foo( void )
>
> {
>
> char const * s1 = "abc";
>
> string s2 = "xyz";
>
>
>
> encrypted_string s3( "secret" );
>
> }
>
>
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>

-- 
Sohail Somani
http://uint32t.blogspot.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk