Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. avoid .net reflector

avoid .net reflector

Scheduled Pinned Locked Moved C#
csharpsecuritytutorialquestion
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Eli Nurman
    wrote on last edited by
    #1

    Hi. Since ".net reflector" can decompile the assembly which means that all of the source can be restored, does any one know how to avoid that? since i have encryption keys stored in the assembly and can by seen with the .net reflector? This has been bothering me for a few month. Thanks.

    L A B U 4 Replies Last reply
    0
    • E Eli Nurman

      Hi. Since ".net reflector" can decompile the assembly which means that all of the source can be restored, does any one know how to avoid that? since i have encryption keys stored in the assembly and can by seen with the .net reflector? This has been bothering me for a few month. Thanks.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      maybe obfuscator helps you...

      VirtualVoid**.NET**

      1 Reply Last reply
      0
      • E Eli Nurman

        Hi. Since ".net reflector" can decompile the assembly which means that all of the source can be restored, does any one know how to avoid that? since i have encryption keys stored in the assembly and can by seen with the .net reflector? This has been bothering me for a few month. Thanks.

        A Offline
        A Offline
        Arjan Einbu
        wrote on last edited by
        #3

        You can obfuscate the assembly. VS2005 includes a Dotfuscator Community Edition (light version). Many other obfuscator tools exist with prices from a couple of hundred to several thousand USD. (See also this Google search[^].)

        1 Reply Last reply
        0
        • E Eli Nurman

          Hi. Since ".net reflector" can decompile the assembly which means that all of the source can be restored, does any one know how to avoid that? since i have encryption keys stored in the assembly and can by seen with the .net reflector? This has been bothering me for a few month. Thanks.

          B Offline
          B Offline
          blackjack2150
          wrote on last edited by
          #4

          Use an obfuscator. Visual Studio comes with the free edition of Dotfuscator, which can rename the symbols in your application. However, in order to achieve a higher degree of protection you'll need more than that. The superior versions Dotfuscator and most similar products have something called string encryption, which will prevent decompilers from reading keys, passwords, etc that are stored as strings in your app. There are a myriad of commercial obfuscators out there and some of them have sponsored articles here on CP. If you want to invest some money into this I recommend {smartassembly}(trial version available on their site). It's way way cheaper than Dotfuscator or Spices.Obfuscator and it's very easy to use. Also, VERY IMPORTANT: if you use features such as serialization, reflection or remoting in your app, you'll have to be very careful with those classes/methods because most obfuscators break the application if those sections of your code are not excluded from renaming. As far as I saw from the trial version, {smartassembly} does that automatically, so that's a big advatage. But download some trials and see which one fits you.

          1 Reply Last reply
          0
          • E Eli Nurman

            Hi. Since ".net reflector" can decompile the assembly which means that all of the source can be restored, does any one know how to avoid that? since i have encryption keys stored in the assembly and can by seen with the .net reflector? This has been bothering me for a few month. Thanks.

            U Offline
            U Offline
            Urs Enzler
            wrote on last edited by
            #5

            As long as your program is able to extract the encryption keys, a hacker is able to do that, too. With or without an obfuscator.

            -^-^-^-^-^- no risk no funk ................... please vote ------>

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups