Thread: Anti Piracy approaches to apps?

  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    119

    Anti Piracy approaches to apps?

    I am developing an application to serve as a "workhorse" and help me eliminate some of the work I have to do. I will be sharing it among colleagues buuut who can trust anybody now a days right? I want to share the program with them, but not allow them to distribute it to their friends and make copies, and maybe run for a specific amount of time before disabling etc...I know there are a lot of licensing programs I can buy, but i'm interested in writing in security code, or using .NET features that support this. Can anyone point me in the right direction?

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    The approach would depend on several things:
    - The value of the application.
    - The need to protect yourself against "professional" attacks.

    The common ways are:
    1. License key stored in registry.
    2. License key generated based on customer system data and verified against file/registry.
    3. Active license server (each time the app is started, it checks for valid license with a server somewhere).
    4. Time-based limit - e.g. app stops working after 15-Mar-2008.

    ALL means of license checking can be overcome, but the amount of effort depends on the complexity of the implementation [e.g. if you combine the hard-disk ID with the MAC-address and generate a hash from that, it would requires that the potential distributor understands how to generate another hash like it from his friends HD-id and MAC-address].

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by John_L View Post
    I am developing an application to serve as a "workhorse" and help me eliminate some of the work I have to do. I will be sharing it among colleagues buuut who can trust anybody now a days right? I want to share the program with them, but not allow them to distribute it to their friends and make copies, and maybe run for a specific amount of time before disabling etc...I know there are a lot of licensing programs I can buy, but i'm interested in writing in security code, or using .NET features that support this. Can anyone point me in the right direction?
    Why not just sign license contracts with these people to put some fear into them? When you sign on the line saying "John_L can sue my ass if I distribute this," things start feeling a lot more serious. If they are honest people and really want your software, I don't think they'd have a problem signing an agreement.

  4. #4
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Then you can do one more thing: give each of the users an individually signed version. If the program leaks, you'll know who did it.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Windows apps verses Console apps
    By nano78 in forum Windows Programming
    Replies: 8
    Last Post: 09-22-2007, 03:41 AM
  2. debugging directx apps
    By confuted in forum C++ Programming
    Replies: 1
    Last Post: 08-16-2003, 08:56 AM
  3. Best Anti Virus Software...?
    By gardenair in forum Tech Board
    Replies: 4
    Last Post: 05-01-2003, 11:17 PM
  4. Beginner on Win32 apps, lame question.
    By Templario in forum C Programming
    Replies: 3
    Last Post: 11-06-2002, 08:39 PM
  5. My opinion on visual apps
    By valar_king in forum Windows Programming
    Replies: 15
    Last Post: 10-08-2001, 05:35 PM