Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy Protection

Status
Not open for further replies.

pluff

Technical User
Mar 3, 2004
15
AU
Hi, I am not much of a programmer - I tend to just bolt bits of code together to get what I want. My problem is that I need to make a script that will time expire and not let people do silly things like set the clock back. I have a script that can do this (compiled version only), it uses the date and username entered with an activation code and then after a few months it stops working and asks for a new activation code. This activation code only works for the one date and setting the clock back won't make it work.

I want the script to protect login info for my customers but allow me to use contractors to do work.

This little project has led me down the programming track a little further than I am comfortable with and I was hopeing someone would be willing to share some code that I could "addapt" to my requirements. Unfortunatly I don't have the skills to start from scratch.

Cheers..

Paul
 
The only thing I can really think of doing is computing some sort of value based on the current date and how long you want the script to be active for, writing that value to a text file, then retrieving that value each time the script is run and reversing the computation to see if the script has expired or not. The downside to this is that there are many programs that can monitor the system for file accesses and let people know what file is holding the magic value. Depending on the scheme you use to generate the token, this may or may not be a problem.

You could likely store the proper values in a registry key (this should be doable via an ASPECT-compatible DLL, but I've never done so), but the same limitations would apply.

aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top