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. dll security

dll security

Scheduled Pinned Locked Moved C#
questioncsharpsecurity
9 Posts 3 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.
  • A Offline
    A Offline
    amit_upadhyay
    wrote on last edited by
    #1

    hello friends!! I have made a library for my c# project by combining 3 libraries (using ilmerge). I wanted to know, is it possible for someone to decompile my new library or view the code? if yes, how do i protect it? or is there any other way of merging the library with my project?

    A 1 Reply Last reply
    0
    • A amit_upadhyay

      hello friends!! I have made a library for my c# project by combining 3 libraries (using ilmerge). I wanted to know, is it possible for someone to decompile my new library or view the code? if yes, how do i protect it? or is there any other way of merging the library with my project?

      A Offline
      A Offline
      Arun Jacob
      wrote on last edited by
      #2

      Use Reflector[^] to see the result. Normally a dll can be protected by Obfuscation.Dotfuscator is a Visual Studio Tool using for obfuscation. :)

      Arun Jacob http://codepronet.blogspot.com/

      A M 2 Replies Last reply
      0
      • A Arun Jacob

        Use Reflector[^] to see the result. Normally a dll can be protected by Obfuscation.Dotfuscator is a Visual Studio Tool using for obfuscation. :)

        Arun Jacob http://codepronet.blogspot.com/

        A Offline
        A Offline
        amit_upadhyay
        wrote on last edited by
        #3

        dotfuscator is good but it does not encrypt the code. also the project shows an error after being linked with the obfuscated library. obviously because it cannot import the namespaces. how do i correct this? do i need to merge my dll with exe?

        A 1 Reply Last reply
        0
        • A Arun Jacob

          Use Reflector[^] to see the result. Normally a dll can be protected by Obfuscation.Dotfuscator is a Visual Studio Tool using for obfuscation. :)

          Arun Jacob http://codepronet.blogspot.com/

          M Offline
          M Offline
          mustang86
          wrote on last edited by
          #4

          Arun Jacob wrote:

          Use Reflector[^] to see the result.

          Wow, awesome tool! Thanks! I wish there was something like that for my VB6 code that I also have to maintain. Of course, there's no time, money, etc to convert my VB6 code to .NET. :-| ________ Joe

          A 1 Reply Last reply
          0
          • M mustang86

            Arun Jacob wrote:

            Use Reflector[^] to see the result.

            Wow, awesome tool! Thanks! I wish there was something like that for my VB6 code that I also have to maintain. Of course, there's no time, money, etc to convert my VB6 code to .NET. :-| ________ Joe

            A Offline
            A Offline
            amit_upadhyay
            wrote on last edited by
            #5

            hey pal, googled for u. Check out this link http://vbcity.com/forums/topic.asp?tid=115861[^]

            M 1 Reply Last reply
            0
            • A amit_upadhyay

              hey pal, googled for u. Check out this link http://vbcity.com/forums/topic.asp?tid=115861[^]

              M Offline
              M Offline
              mustang86
              wrote on last edited by
              #6

              amitupadhyay007353543543 wrote:

              hey pal, googled for u. Check out this link http://vbcity.com/forums/topic.asp?tid=115861\[^\]

              Wow, thanks! My desire is for something that will help me find the dependences and code in my VB6 program. By doing a google on VB6 disassembler, I found a bunch of stuff. I always thought that VB6 compiled directly to assembler/machine code. My VB6 program started out as a simple quick interface to some custom hardware. However, over the years, it's become a huge monstrosity. Since the program was never planned to be huge with many diverse support functions, it's become a bunch of added_on/hacked_on functions. I've started the new version in C#. And, I'm and doing the code and functions properly this time to support a complex GUI. :) However, for a few reasons, I'll still need to support the VB6 program for a few more years. I dread every time I have to go back to VB6 and Visual Studio6. However, as long as I'm getting paid, then it's all good. :) Wow, also, I just realized. I have a proprietary calibration routine in my VB6 code. It's part of the overall code base. Now, I just disable/hide that Windows form in the version of code that goes to our customers. However, it seems a VB6 decompiler can expose that routine. Yikes! That's good to know. From now on, I'll strip out that module when I build a customer code version. By the way, I knew to strip out that proprietary calibration module in my C# customer code version. Until I find/see a very good way to protect that C# code, I'll keep doing that. It would be nice to have just one single C# code base. Thanks again!

              1 Reply Last reply
              0
              • A amit_upadhyay

                dotfuscator is good but it does not encrypt the code. also the project shows an error after being linked with the obfuscated library. obviously because it cannot import the namespaces. how do i correct this? do i need to merge my dll with exe?

                A Offline
                A Offline
                Arun Jacob
                wrote on last edited by
                #7

                I think you are using dotfuscator in the Visual studio project Dlls.Instead of that use it for dll's and exe in the BIN folder.ie,in the output directory not in the Visual Studio project. While using dotfuscator browse all of your dlls and also your exe from your build output directory.Otherwise this dll won't work with that exe because of the change in method names and private variable names. :)

                Arun Jacob http://codepronet.blogspot.com/

                A 1 Reply Last reply
                0
                • A Arun Jacob

                  I think you are using dotfuscator in the Visual studio project Dlls.Instead of that use it for dll's and exe in the BIN folder.ie,in the output directory not in the Visual Studio project. While using dotfuscator browse all of your dlls and also your exe from your build output directory.Otherwise this dll won't work with that exe because of the change in method names and private variable names. :)

                  Arun Jacob http://codepronet.blogspot.com/

                  A Offline
                  A Offline
                  amit_upadhyay
                  wrote on last edited by
                  #8

                  Thanks arun, I was only importing dll and not the exe Now i get the problem. Thanks again.

                  A 1 Reply Last reply
                  0
                  • A amit_upadhyay

                    Thanks arun, I was only importing dll and not the exe Now i get the problem. Thanks again.

                    A Offline
                    A Offline
                    Arun Jacob
                    wrote on last edited by
                    #9

                    Its ok buddy. :-D

                    Arun Jacob http://codepronet.blogspot.com/

                    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