"Walter Bright" <newshou...@digitalmars.com> wrote in message news:ho34du$2li...@digitalmars.com... > 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;
Wouldn't compiler errors still refer to the obfuscated name?