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. Source code protection

Source code protection

Scheduled Pinned Locked Moved C#
csharp
7 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.
  • T Offline
    T Offline
    triag
    wrote on last edited by
    #1

    I like C# but its useless in my applications because I can not protect my source code as its always included in deliverables. Is there any real solution coming for this in near future or should I just give up C# .NET. I believe this should be major concern for many but I haven's see Microsoft taking any role for this.

    M M 2 Replies Last reply
    0
    • T triag

      I like C# but its useless in my applications because I can not protect my source code as its always included in deliverables. Is there any real solution coming for this in near future or should I just give up C# .NET. I believe this should be major concern for many but I haven's see Microsoft taking any role for this.

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #2

      triag wrote:

      I can not protect my source code

      No.. You don't need to give your sourcecode to your client.. After making the setup file, there won't be any sourcecode in your setup file..

      Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."

      T 1 Reply Last reply
      0
      • T triag

        I like C# but its useless in my applications because I can not protect my source code as its always included in deliverables. Is there any real solution coming for this in near future or should I just give up C# .NET. I believe this should be major concern for many but I haven's see Microsoft taking any role for this.

        M Offline
        M Offline
        Michael Davey 1
        wrote on last edited by
        #3

        Are you referring to ASP.Net websites, specifically how you can deploy the code to the site and it is compiled as required? If so this may or may not interest you: http://msdn2.microsoft.com/en-us/library/Aa479568.aspx Regards,

        Michael Davey biproject.com rss and blog news in a more palatable format..

        1 Reply Last reply
        0
        • M Michael Sync

          triag wrote:

          I can not protect my source code

          No.. You don't need to give your sourcecode to your client.. After making the setup file, there won't be any sourcecode in your setup file..

          Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."

          T Offline
          T Offline
          triag
          wrote on last edited by
          #4

          I tried this by making simple windows forms application and publish it. I select The application is available offline as well. It generated setup.exe and subdirectory Application files. Under that there is file application.exe.deploy I renamed that to be application.exe and open it Lutz Roeder's reflector. It was able to re-generate my source code from that. I think my clients can do same.

          M 1 Reply Last reply
          0
          • T triag

            I tried this by making simple windows forms application and publish it. I select The application is available offline as well. It generated setup.exe and subdirectory Application files. Under that there is file application.exe.deploy I renamed that to be application.exe and open it Lutz Roeder's reflector. It was able to re-generate my source code from that. I think my clients can do same.

            M Offline
            M Offline
            Michael Sync
            wrote on last edited by
            #5

            No. The generated code won't be the same as the original code that you wrote..

            Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."

            T 1 Reply Last reply
            0
            • M Michael Sync

              No. The generated code won't be the same as the original code that you wrote..

              Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."

              T Offline
              T Offline
              triag
              wrote on last edited by
              #6

              Atleast all of my business logic is there in very clear form. I don't really feel confident. Reverse-engineering or hacking is other thing as this is way too easy to steal the hard work.

              P 1 Reply Last reply
              0
              • T triag

                Atleast all of my business logic is there in very clear form. I don't really feel confident. Reverse-engineering or hacking is other thing as this is way too easy to steal the hard work.

                P Offline
                P Offline
                pmarfleet
                wrote on last edited by
                #7

                You would need to look at using an obfuscator[^] to make it more difficult to reverse-engineer the source code for your application.

                Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

                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