?
Solved

How to protect the application with a serial-number?

Posted on 2012-03-24
2
Medium Priority
?
398 Views
Last Modified: 2012-03-25
Dear Experts,

I use VS2010 and I programm in C#.

My application is almost ready. Only I miss 1 important thing in my application.
When I download and install other applications that is not freeware, it always
asks for a serialnumber, when I enter a valid number the application becomes
available. In other words, how can I protect my application with a serial-number?
And are there other ways to protect my application.

Greetings,


Peter Kiers
0
Comment
Question by:peterkiers
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 2000 total points
ID: 37761128
There are many ways to do that.

The one that is used most often nowadays (most games and Microsoft applications work that way) is to use a database to record the registrations numbers that have been emitted, with any information that you might want to use to prevent many installations, date limit, number or runs limit, installations by more than one user, etc., anything you want to set as a limitation.

The numbers that you provide can be validated with some algorithm.

Here is a very simple example, where the programmer has decided that the sum of the first 3 digits multiplied by 4 would give the value of the next 3 digits:

123 024          (1+2+3)*4 = 024

If the user tries to type 123 011, the application will automatically rejects the number because the last group of digits does not give the result expected by the algorithm. Naturally, in real life, algorithms are more complex, and will often play with the ASCII value of registration number so that it is not as easy to decipher.

Once the registration number has been validated at the application level, it is sent to a server that validate its against the database and record in the database any information needed to manage the type of licence, such as the date of installation, incrementing a count of the number of installations, etc.

The server answers the application and tell it whether the registration is valid or not.

If the registration is not valid, you slap the user :-)

If the registration is valid, something is recorded on the users computer, maybe in the Windows registry.

The application checks against that information everytime it starts. If that information is there, the application knows that the registration was validated and starts.

Some applications will record the registration number so that the application gets back to the server everytime it is started without user intervention. This would be useful if you were providing a demo version that can be used a limited number of times or up to a given date. This could also be what you would do if you were Ubisoft and would like to piss off the people who paid for your application by preventing it from working when they are offline or that your server is down :-)

If the information is not where it is supposed to be when the application starts, that usually means that the application was not registered or that the user needed to reinstall for some reason, so the registration procedure is launched.
0
 
LVL 1

Author Comment

by:peterkiers
ID: 37762301
Thanks for the info.

Peter
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question