Obfuscating function names and the like inside exe file

Ellery Newcomer ellery-newcomer at utulsa.edu
Sat Mar 20 10:30:18 PDT 2010


On 03/20/2010 11:24 AM, Robert Jacques wrote:
> On Sat, 20 Mar 2010 10:12:14 -0300, bobef
> <_asd_ASd_ASD_Asdasd_ASd at asdasda___dasd.com> wrote:
>> Hello all,
>>
>> I was wondering if someone know of way to obfuscate all the strings
>> and function names and class names inside DMD Windows generated exe
>> file. Opening the file with notepad shows all kinds of strings and
>> names in clear text and since my application handles some sensitive
>> data it gives me an extra feeling of insecurity. Any suggestions?
>>
>> Thanks
>
> Regarding function names/etc. I'd expect any industry standard
> obfuscator would scramble them for you. A bigger problem is the data
> segment which stores any constant strings, etc. If you really have to
> include them in your program, I'd recommend writing a compile time
> encrypt and runtime decrypt function pair. i.e.
>
> string name = rt_decrypt(ct_encrypt!"important name");

Doesn't that just put "important name" in the mangled name of ct_encrypt 
(albeit in hex)?



More information about the Digitalmars-d mailing list