[Openroad-users] Coding app to work for designated period
Darren Mason
darren.mason at myworkplace.com.au
Thu Aug 2 21:06:12 EST 2007
Hi Gareth
We 'encrypt' a license string that has an expiration date built into it. We
actually have a number of different structures and use an identifier in the
string to denote which technique has been applied in the string, so we check
a nominated character as the first step and this tells us how to unpack the
string to derive the date.
The expiration date is embedded in the string and extracted using the
required technique.
So a license string may be 2398762567.
The 1st 3 characters may be nonsense and do nothing, the 4th identify the
'unpacking' technique, and the next 6 contain a number that can be unpacked
to represent a date. The 4th character in the license string above = '8'
so we use the technique associated with 8. This may be something like the
number of days since 1990, so when added to 1990 it gives the expiration
date. You can do some stuff such as counting the number of days, dividing
it by 3, multiplying it by 7 , and then adding 1234 to it. We use a
separate program to generate the license string for our clients (we enter
the expiration date and the 'packing' technique and the software generates
the string). Our program checks the license string and unpacks it. If we
are nearing the expiration date it warns the users and once expired it
denies them access.
We don't do the above but I am sure you get the idea. We have a number of
different techniques so different clients don't necessarily have the same
technique applied.
Anyway, it may be overkill for you but it works really well for us.
Regards
Darren Mason
cid:image001.jpg at 01C75FC8.883E9850
MyWorkplace Solutions Pty Limited
Level 5, 11 Queens Road
Melbourne Victoria 3004
Ph. 1300 733 731
Mob. 0419 337 170
Fax. 03 9710 1112
Making Service our Priority
www.MyWorkplace.com.au
If you receive this email by mistake, please notify us and do not make any
use of the email. We do not waive any privilege, confidentiality or
copyright associated with it.
From: openroad-users-bounces at peerlessit.com
[mailto:openroad-users-bounces at peerlessit.com] On Behalf Of
gareth.2.edwards at bt.com
Sent: Thursday, 2 August 2007 8:46 PM
To: openroad-users at peerlessit.com
Subject: [Openroad-users] Coding app to work for designated period
WinXP
OR2006
Ing2006
Hi All,
I've never really given this much thought in the past,.
What ideas do you have for making an application only work for a given time,
like licensing? Because dates can be changed and data accessed in the DB
(ie. days_remaining = 20).
Cheers,
Gareth Edwards
BT Global Services
tel: +44 (0)131 345 4671
email: <mailto:daryn.piper at bt.com> gareth.2.edwards at bt.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.peerlessit.com/pipermail/openroad-users/attachments/20070802/9c56e96d/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 1436 bytes
Desc: not available
Url : http://www.peerlessit.com/pipermail/openroad-users/attachments/20070802/9c56e96d/attachment.jpe
More information about the Openroad-users
mailing list