473,400 Members | 2,163 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,400 software developers and data experts.

Help with creating license code

Hi

I would like to have some input on creating license codes. I do not really
wish to use any standard methods (like -lic files). What I need to do is the
following.

Our application will store information about the license in the user
database. I am not really afraid that the customers will try to crack the
licenses, but some level of security is needed. If the software is licensed,
the customer can install the software on multiple machines without further
licensing procedures (application checks license in the database)

The license holder will have a name and the license will expire at a certain
date. By using these two variables I want to create a license key that is
relatively easy to tell over the phone, for example xxxx-xxxx-xxxx.

The license code needs to hold information about the expiration date, but
not the customer name. However, the user has to type his customer name on
the screen and this name must be checked against the license code somehow.
If the license is correct, I store the expiration date in the database.

Any ideas? I have been trying 4 or 5 commercial products, but none really
fits my needs. I guess that this could be achieved rather easily by not to
many lines of code.

Thanks for your input!

/Jonas Bergman
Dec 28 '05 #1
2 2307
pH
You could probably hash the licence holder's name (e.g. with MD5 /
SHA1) and use, say, every fourth digit of the hash as the basis of the
licence code (first 8 digits, or whatever); you could then encode the
expiration date as a 16-bit number and perhaps perform some symmetric
transform on it for security, and use the hex representation of the
result as the last four digits. Then, you can check the licencee name
by hashing the entered name and comparing the relevant digits; the
expiration date can then be decoded if it matches.

That arrangement would be secure enough to ward off casual fraudsters,
though I wouldn't rely on it if I *really* distrusted my too-tech-savvy
users...

Dec 28 '05 #2
Have you had a look at Infralution's Licensing System? You should be
able to do everything listed above with it - if not we always welcome
feedback and will provide assistance.

You can get more information and download an evaluation version at:

www.infralution.com/licensing.html

Regards
Grant Frisken
Infralution

Dec 28 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

34
by: Michael Foord | last post by:
I'd like to formalise slightly the license I release my projects under. At the moment it's 'free to use, modify, distribute and relicense'. This is basically fine as I don't want t oprevent people...
20
by: titi | last post by:
Question The road and traffic authority for a small country currently uses a system to store information about all 'currently' licensed drivers. A licensed driver has the following info stored...
3
by: Roy Chastain | last post by:
The following code fails with an exception of "There is an error in XML document (2, 2)." string with an inner exception of "Value cannot be null.\r\nParameter name: input" string. The inner...
51
by: mojosam | last post by:
I've been watching the flame war about licenses with some interest. There are many motivations for those who participate in this sector, so disagreements over licenses reflect those agendas. I...
0
by: BigAl.NZ | last post by:
Hi Guys, I am trying to write/copy some code that uses events with a GPS. Everytime the GPS position updates the event fires. The GPS code is from a SDK Library that I got called GPS Tools...
38
by: ifti_crazy | last post by:
I am VB6 programmer and wants to start new programming language but i am unable to deciced. i have read about Python, Ruby and Visual C++. but i want to go through with GUI based programming...
31
by: Mark Dufour | last post by:
Hi all, I have recently released version 0.0.20 and 0.0.21 of Shed Skin, an optimizing Python-to-C++ compiler. Shed Skin allows for translation of pure (unmodified), implicitly statically typed...
0
by: Jerry Spence1 | last post by:
Can anyone point me in the right direction on how to set a license key when creating a licensed control dynamically? I have a licensed ActiveX component. Works fine when I put an instance on the...
0
by: Simon Anderson | last post by:
Hi All, Im trying to develop a secure way of licensing my companies software we have an encrypted code at the moment so that will stop anyone from running the programs but the problem ive...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.