The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 06-06-2007
blowtorch's Avatar
blowtorch blowtorch is offline
Supporter
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,332
If you are planning to release the code of your program to the rest of the world, then a demo version is redundant. If not, then you can generate a key when the program is installed and store it in some file. You can check for that file's checksum and timestamps when the file is written to and then on subsequent runs, your program should check the file and refuse to run if the checksum/size or the timestamp changes in any way.

For a user, it would be a bit more complicated, but you could go along similar lines.
Reply With Quote