CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2009
    Location
    Kathmandu,Nepal
    Posts
    168

    Protect .net app against piracy!

    Hello!
    I need some help and ideas on protecting the .net application (C# especially) against piracy either by adding some extra codes like in ActiveLock or other application protection tools. Please suggest me all the ideas you guys have. Protection in the sense that cd key and user key....I want to try all the possible tools. I tried ActiveLock but its implementation on csharp was little too difficult for me. Little guidence on this topic will really help me.

  2. #2
    Join Date
    Jun 2008
    Posts
    2,477

    Re: Protect .net app against piracy!

    So, you will never find what you seem to be after. This is even more true of .NET apps because they are compiled to bytecode, not machine code. This means that I can easily see your source code by running your app through a program like .NET Reflector.

    However, you shouldn't worry about this. You do not need to have a 100% secure app, or even 75% secure. All you need is some mechanism to keep the mostly honest people honest. The devious people who only wish to pirate your app will always succeed if they try hard enough and you will never be able to stop them. You don't need to stop them, they will never pay for your app anyway. A simple license key scheme will work for you, you don't need to go overboard and you definitely do not want to make the process onerous for the people who *did* pay for your app and just want to use it.
    If you liked my post go ahead and give me an upvote so that my epee.... ahem, reputation will grow.

    Yes; I have a blog too - http://the-angry-gorilla.com/

  3. #3
    Join Date
    Dec 2009
    Location
    Kathmandu,Nepal
    Posts
    168

    Re: Protect .net app against piracy!

    Thank you for your words but I like to have some knowledge on this topic too....Or is it totally foolish to have some knowledge on this topic??....Initially i am interested in licensing and serial keys because almost all software have them( open source and freewares excluded) and this may help in future in professional carrier.

  4. #4
    Join Date
    Jun 2008
    Posts
    2,477

    Re: Protect .net app against piracy!

    I doubt that you will ever talk about licensing schemes on your resume. If you wish to learn about how this is typically done there are plenty of articles out there, but I am not completely sure what you are asking now
    .
    If you liked my post go ahead and give me an upvote so that my epee.... ahem, reputation will grow.

    Yes; I have a blog too - http://the-angry-gorilla.com/

  5. #5
    Join Date
    Aug 2008
    Posts
    902

    Re: Protect .net app against piracy!

    .NET is much easier to reverse engineer than languages that compile to native machine code. There exist .NET obfuscation code that will basically jumble the bytecode up a lot to make it harder to understand, though I'm sure this messes with performance.

    I've looked into copy protection before and I've come to the conclusion that no protection is foolish, but overprotecting is just as foolish. Stick to just the most basic types of copy protection.

  6. #6
    Join Date
    May 2007
    Posts
    1,546

    Re: Protect .net app against piracy!

    it may be possible to AOT your application on every target platfrom and then strip out the method bodies from all your managed code. Once your code is AOT'ed you shouldn't require the CIL code inside the methods anymore, which'd make it much harder to reverse engineer stuff.

    http://groups.google.com/group/mono-...ts-using-cecil

    The tool you need is 'mono-cil-strip'.
    www.monotorrent.com For all your .NET bittorrent needs

    NOTE: My code snippets are just snippets. They demonstrate an idea which can be adapted by you to solve your problem. They are not 100% complete and fully functional solutions equipped with error handling.

  7. #7
    Join Date
    Dec 2009
    Location
    Kathmandu,Nepal
    Posts
    168

    Re: Protect .net app against piracy!

    Thank You very much Mutant_Fruit, Other help will also be welcomed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured