Click here to Skip to main content
16,013,747 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i can calculate time by using system date and time. But problem is that if the user will change system date and time that time what can i do ? or what will be the best solution ?
Posted

use serial key method. give serial key which encoded with the date.
 
Share this answer
 
Comments
al-foysal 5-Jan-16 4:45am    
thanks for kind response .that is ok . but i need to calculate date to compare with registration time .how i calculate? is it clear.
You'll probably need to host a website somewhere that your software connects to when it first starts\is registered which will store the key with the registration date. Your service will provide an API that the software will pass the registration key to when it starts and the service will respond to say if the trial period has elapsed. The downside to this is obviously that the software needs an on-line connection to work, and you'll really need to use https for your api calls if you use an http-based API.

Creating Secure Trial Versions for .NET Applications - A Tutorial[^]
 
Share this answer
 
Comments
al-foysal 5-Jan-16 23:31pm    
thanks for kind response. yeah that is right . but i want to do that without internet i.e offline.
at the time of registration u create a file and compare the file created date with or store value in the file compare.
 
Share this answer
 
Comments
al-foysal 5-Jan-16 23:36pm    
thanks.so file created date need to compare with which date ?(System date or else ?) if system date , that time problem is -if user will change system date !

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900