Dne 6.1.2015 v 18:15 FrankLike via Digitalmars-d-learn napsal(a): > How to prevent sensitive information is displayed when the extension > 'exe' is modified to 'txt' on windows? > > If you build a exe ,such as which can get Data from DataBase,when you > modify the exe's extension to 'txt', > and you open it by notepad.exe (on windows),you will find the info,it's > important for me,so how to stop the info to display ? > > > Driver={SQL Server Native Client > 10.0};Server=127.0.0.1;Database=test;Trusted_Connection=Yes \ €`B > SELECT top 10 * FROM testtable 鑐B atest.d aB > testcolumnname aB std.stdio.File err.text GaB w XaB > error : > haB @ < > > > Thank you.
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. http://upx.sourceforge.net/ Martin
smime.p7s
Description: Elektronicky podpis S/MIME