Hi
I would like to set expiration date for a perl application, executable created using PDK Active State. Platform is Win32.
The following code works well, the problem is that if user change Date and time from windows, it will not work.
My application as well reads a single xml license file per user which contains (username, macaddres, hostname etc), But if I add "encrypted expiration date inside that I will have same problem if user changes the date.
What would you suggest? Is it possible to get the current date for another source, like web site?.
How some apps detect that user has changed the date?
Thanks
More info about active state PerlApp::get_bound_file function:
dmazzini
GSM/UMTS System and Telecomm Consultant
I would like to set expiration date for a perl application, executable created using PDK Active State. Platform is Win32.
The following code works well, the problem is that if user change Date and time from windows, it will not work.
Code:
BEGIN {
return unless defined $PerlApp::VERSION;
my $expire = PerlApp::get_bound_file("expire") or return;
print "Expire:$expire\n";
my($y,$m,$d) = (localtime)[5,4,3];
my $today = sprintf("%04d-%02d-%02d", $y+1900,$m+1,$d);
print "Today:$today\n";
return if $today le $expire;
print "expired\n";
exit;
}
print "ok\n";
My application as well reads a single xml license file per user which contains (username, macaddres, hostname etc), But if I add "encrypted expiration date inside that I will have same problem if user changes the date.
What would you suggest? Is it possible to get the current date for another source, like web site?.
How some apps detect that user has changed the date?
Thanks
More info about active state PerlApp::get_bound_file function:
Code:
[URL unfurl="true"]http://community.activestate.com/tags/perlapp[/URL]
dmazzini
GSM/UMTS System and Telecomm Consultant