How to protect my application??

This is a discussion on How to protect my application?? within the C# Programming forums, part of the General Programming Boards category; I've application on certain pc & I want only that pc to execute it,so I've thought about getting a unique ...

  1. #1
    Registered User
    Join Date
    Jun 2006
    Posts
    10

    Question How to protect my application??

    I've application on certain pc & I want only that pc to execute it,so I've thought about getting a unique identifier (e.g. processor id ) using c# .

    Problems :
    I know that solution isn't usable because if the processor on that pc is changed so the application won't work any more .

    Initially, how can I make that kind of protection by getting a unique id.

    If any one has a better idea plz tell me about it.

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,434
    The problem with all such schemes is that anyone with half a mind to hack it can find out where you do
    if ( key == magic ) doProgram();

    And turn it into
    if ( key != magic ) doProgram();
    to enable the code to run on every machine EXCEPT yours.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Cleanup of the application...
    By Petike in forum Windows Programming
    Replies: 1
    Last Post: 08-16-2008, 05:23 PM
  2. Problem with com application
    By amardon in forum C++ Programming
    Replies: 3
    Last Post: 10-06-2005, 05:50 AM
  3. MFC run application by clicking on file...
    By dug in forum Windows Programming
    Replies: 4
    Last Post: 12-02-2004, 03:33 AM
  4. Win application not very portable
    By swed in forum Windows Programming
    Replies: 5
    Last Post: 10-01-2001, 11:17 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21