Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / July 2007

Tip: Looking for answers? Try searching our database.

String in the exe file.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Boki Digtal - 23 Jul 2007 08:59 GMT
Hi All,

I have some special strings in c# code, and I complier it to exe file.

I opened the exe file by a UltraEdit, I can't find the string I define
in code.

Does that mean other people can't find the string as well?

Best regards,
Boki.
ClayB - 23 Jul 2007 09:30 GMT
Someone could probably use tools like ILDASM.EXE (ships with .NET SDK)
or .Net Reflector (http://www.aisto.com/roeder/dotnet/) to see strings
in an .NET exe file.

=====================
Clay Burch
Syncfusion, Inc.
Boki Digtal - 23 Jul 2007 10:16 GMT
> Someone could probably use tools like ILDASM.EXE (ships with .NET SDK)
> or .Net Reflector (http://www.aisto.com/roeder/dotnet/) to see strings
[quoted text clipped - 3 lines]
> Clay Burch
> Syncfusion, Inc.

OK, sounds very easy.

What's the .NET programmer's solution ?

Use a obfuscator?

Thanks!
Boki.
Mark Rae [MVP] - 23 Jul 2007 10:49 GMT
> Use a obfuscator?

Obfuscation will probably keep out the merely curious, but will certainly
not stop a determined hacker...

You could always encrypt the strings before storing them...

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

Mihai N. - 23 Jul 2007 10:12 GMT
> I have some special strings in c# code, and I complier it to exe file.
>
> I opened the exe file by a UltraEdit, I can't find the string I define
> in code.

They are stored as UTF-16.

This means that
   "Hello"
will not be stored as
   48 65 6c 6c 6f
but as
   48 00 65 00 6c 00 6c 00 6f 00

Signature

Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
Replace _year_ with _ to get the real email


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.