Hi guys
I have created a perl executable file, that just specific window usernames can run it. I basically distributed individual XML licenses per user, which contains a "key" which is produced by another script based in window username and some kind of algorithm. (just me run it)
So, executable script reads "xml License" and based on windows username, generate key (it has same algorithm as the other script), if generated key is equal to key found in the "xml licence file" then script runs, otherwise script gives a message to the user that licence is not valid or is belong to someone else.
Now, I would like to be able to set "expiration dates" to these licences, like many commercial program does.
For instance from the first time that someone use script, give a 1 month period to use. I was thinking to write a hidden file in the PC where it will write date and time (just for first time), then everytime that someone use the script, it will look for that "hidden file" and check the remaining dates. For instance 28 valid days..etc
Could you guys offer me another alternatives to do it?
XML Licence example
dmazzini
GSM/UMTS System and Telecomm Consultant
I have created a perl executable file, that just specific window usernames can run it. I basically distributed individual XML licenses per user, which contains a "key" which is produced by another script based in window username and some kind of algorithm. (just me run it)
So, executable script reads "xml License" and based on windows username, generate key (it has same algorithm as the other script), if generated key is equal to key found in the "xml licence file" then script runs, otherwise script gives a message to the user that licence is not valid or is belong to someone else.
Now, I would like to be able to set "expiration dates" to these licences, like many commercial program does.
For instance from the first time that someone use script, give a 1 month period to use. I was thinking to write a hidden file in the PC where it will write date and time (just for first time), then everytime that someone use the script, it will look for that "hidden file" and check the remaining dates. For instance 28 valid days..etc
Could you guys offer me another alternatives to do it?
XML Licence example
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Licence File -->
<Licence version="1.0" Author="dmazzini" standalone="yes">
<p name="LastName">XXXXX </p>
<p name="FirstName">YYYYY</p>
<p name="Email">XXXX@YYY.com</p>
<p name="Licence">793rboyyuxuNOE8039</p>
</Licence>
dmazzini
GSM/UMTS System and Telecomm Consultant