DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Implementing time-limit in a program

  1. #1
    Bill Guest

    Implementing time-limit in a program


    What is a good way to implement a time-limit in a program, so that it stops
    functioning after a given amount of days? I was thinking of using the registry,
    but if I just save a date or a number of days, it is easy to change.

    Any ideas?

    Thanks,

    /BiLL.

  2. #2
    David Crowell Guest

    Re: Implementing time-limit in a program

    You can store a hash of the value also. If the value doesn't match the
    hash, then you know it's been tampered with.

    <plug>
    or you could check out my CSecurity product at www.davidcrowell.com
    </plug>

    Dave


    "Bill" <bill@billnet.nu> wrote in message news:3961aa06$1@news.devx.com...
    >
    > What is a good way to implement a time-limit in a program, so that it

    stops
    > functioning after a given amount of days? I was thinking of using the

    registry,
    > but if I just save a date or a number of days, it is easy to change.
    >
    > Any ideas?
    >
    > Thanks,
    >
    > /BiLL.




  3. #3
    Sylvain Forget Guest

    Re: Implementing time-limit in a program


    Yes use the registry and just encrypt the date with a key only you know. And
    just decrypt it to verify how many days it's been.

    "Bill" <bill@billnet.nu> wrote:
    >
    >What is a good way to implement a time-limit in a program, so that it stops
    >functioning after a given amount of days? I was thinking of using the registry,
    >but if I just save a date or a number of days, it is easy to change.
    >
    >Any ideas?
    >
    >Thanks,
    >
    >/BiLL.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center