How to prevent sensitive information is displayed when the extension 'exe' is modified to 'txt' on windows?

John Colvin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jan 7 07:05:49 PST 2015


On Wednesday, 7 January 2015 at 14:33:16 UTC, Tobias Pankrath 
wrote:
> On Wednesday, 7 January 2015 at 14:18:53 UTC, FrankLike wrote:
>> On Wednesday, 7 January 2015 at 11:00:54 UTC, Laeeth Isharc 
>> wrote:
>>>
>>>>
>>>> What you want is some kind of code obfuscation. The easiest 
>>>> thing for
>>>> you is to use exe compression. It is not going to stop a 
>>>> dedicated
>>>> attacker, but ordinary people will not be able to extract any
>>>> information from it.
>>>
>>> And I guess as an alternative to the utility you linked to, 
>>> you could use D's ability to run code at compile time to 
>>> encrypt your sensitive literals during compilation and then 
>>> decrypt them on program startup.
>>
>> Thank you,but it's not easy to do,can you show me some detail?
>
> http://dpaste.dzfl.pl/3bbdecfefa5c

I'm not sure about some of that. Bad casts w.r.t. immutability 
etc.

How about:
http://dpaste.dzfl.pl/706ab2db9ce1


More information about the Digitalmars-d-learn mailing list