473,373 Members | 1,103 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,373 software developers and data experts.

Help with creating license code


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

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 2306
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

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:


Grant Frisken

Dec 28 '05 #3

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

Similar topics

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...
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...
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...
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...
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...
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...
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...
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...
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...
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.