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