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. How to prevent my .NET DLL to be decompiled?

How to prevent my .NET DLL to be decompiled?

Scheduled Pinned Locked Moved C#
csharpvisual-studiotutorialquestion
4 Posts 4 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hi Expert i am using VS 2005 and Making Some .dll File but i see that their are some tool like .net reflector like to decomplied the .dll file code is their any way to prevent to decomplied my .NET Dll.

    A R B 3 Replies Last reply
    0
    • L Lost User

      Hi Expert i am using VS 2005 and Making Some .dll File but i see that their are some tool like .net reflector like to decomplied the .dll file code is their any way to prevent to decomplied my .NET Dll.

      A Offline
      A Offline
      Abhinav S
      wrote on last edited by
      #2

      Use a tool like a Dotfuscator[^]. Unfortunately, such tools dont very often prevent assemblies from getting decompiled. They just make the decompiled code harder to read.

      1 Reply Last reply
      0
      • L Lost User

        Hi Expert i am using VS 2005 and Making Some .dll File but i see that their are some tool like .net reflector like to decomplied the .dll file code is their any way to prevent to decomplied my .NET Dll.

        R Offline
        R Offline
        riced
        wrote on last edited by
        #3

        The short answer is no. If someone wants to decompile it they will. You could use an obfusticator to make it less readable, but that would not stop them being able to decompile it. So the long answer is also no. :)

        Regards David R --------------------------------------------------------------- "Every program eventually becomes rococo, and then rubble." - Alan Perlis The only valid measurement of code quality: WTFs/minute.

        1 Reply Last reply
        0
        • L Lost User

          Hi Expert i am using VS 2005 and Making Some .dll File but i see that their are some tool like .net reflector like to decomplied the .dll file code is their any way to prevent to decomplied my .NET Dll.

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

          By design .NET embeds rich Meta data inside the executable code using MSIL. Anyone can easily decompile your DLL back using tools like ILDASM (owned by Microsoft) or Reflector for.NET which is a third party. Secondly there are many third party tools which make this decompiling process a click away. So any one can easily look in to your assemblies and reverse engineer them back in to actual source code and understand some real good logic which can make it easy to crack your application. The process by which you can stop this reverse engineering is using “obfuscation”. It’s a technique which will foil the de compilers. There are many third parties (XenoCode, Demeanor for .NET) which provide .NET obfuscation solution. Microsoft includes one that is Dotfuscator Community Edition with Visual Studio.NET

          lklklhjsdg

          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