String in the exe file.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Boki Digtal

    String in the exe file.

    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

    #2
    Re: String in the exe file.

    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.

    Comment

    • Mihai N.

      #3
      Re: String in the exe file.

      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


      --
      Mihai Nita [Microsoft MVP, Windows - SDK]
      Best internationalization practices, solving internationalization problems.

      ------------------------------------------
      Replace _year_ with _ to get the real email

      Comment

      • Boki Digtal

        #4
        Re: String in the exe file.

        On 7 23 , 4 30 , ClayB <cl...@syncfusi on.comwrote:
        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.
        OK, sounds very easy.

        What's the .NET programmer's solution ?

        Use a obfuscator?

        Thanks!
        Boki.

        Comment

        • Mark Rae [MVP]

          #5
          Re: String in the exe file.

          "Boki Digtal" <bokiteam@ms21. hinet.netwrote in message
          news:1185182183 .219772.246960@ i13g2000prf.goo glegroups.com.. .
          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...


          --
          Mark Rae
          ASP.NET MVP


          Comment

          Working...