Obfuscating function names and the like inside exe file
Walter Bright
newshound1 at digitalmars.com
Sat Mar 20 11:33:36 PDT 2010
bobef wrote:
> 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?
1. make sure you're not compiling with debug info (-g) on.
2. you can just use a bit editor to stomp on those names in the executable
(replace them with XXXXX or whatever). The exe files are not checksummed, so
this should be straightforward.
3. rename your sensitive classes to obscure names, then alias them to a readable
name. The alias name shouldn't appear in the executable:
class CXX97ASDFXX { }
alias CXX97ASDFXX mySensitiveName;
More information about the Digitalmars-d
mailing list