943,683 Members | Top Members by Rank

Ad:
Jul 2nd, 2009
0

creating a license ?

Expand Post »
i am creating a VB application..
is there a way i can ensure a user can install it only on one system and not distribute it ?
something like a license ?

thanks...
Similar Threads
Reputation Points: 10
Solved Threads: 9
Junior Poster
aashishn86 is offline Offline
184 posts
since Jun 2008
Jul 2nd, 2009
0

Re: creating a license ?

This has been discussed in many a forum and to get to the short of it. NO. You cannot guarantee that some user who has bought a license will not install your app on several machines. Well what about hard drive serial numbers? They change if you format them. How about the CPU ID? And if it is disabled by the user because of the outcry of the public when Intel introduced it?

In short, no matter what you do, someone if they really want to will get around everything you try to do to keep your program secure.


Good Luck
Reputation Points: 156
Solved Threads: 296
Posting Virtuoso
vb5prgrmr is offline Offline
1,670 posts
since Mar 2009
Jul 2nd, 2009
0

Re: creating a license ?

lets say the technical knowledge of my user is limited to installing the application from the setup....


any way we can do it now ?
Reputation Points: 10
Solved Threads: 9
Junior Poster
aashishn86 is offline Offline
184 posts
since Jun 2008
Jul 3rd, 2009
0

Re: creating a license ?

Well, if you want to create a "License Key" to activate a program or to enable all of its functions, there are several ways you can do this. Now, if you want to have the ability to have virtually an unlimited number of "License keys" then you need to figure out some sort of formula for creating a key and deciphering the key to check if it is valid. Once you have that, then you need to figure out where your going to store it. More than likely the registry.

So from here I could just go ahead and say good luck, but I don't think you would be satisfied with that as I really have not given you much of an idea on what to do. So here is a thought...

Microsoft now has what 5 fields to enter information in and each field is what 4-5-6 characters? Okay so we will go with that as a basis for our key.

Now lets start with some functions that we can add to any program by just dropping a module or two into said program.

First lets start by using the formula for determining if a number is prime or not (search for it on web).

Now, search for base conversion vb6 on the web. You should be able to find several algorithms that will convert any number from binary to base 36 (0-9+A-Z) or anything in between.

Do you see where I am headed to yet???

No? Okay...

We have 5 fields that accept 5 numbers/letters (for arguements sake) and we have a function that will convert any number to any base from binary to base 36, along with a function that will return true or false if a number is a primer number or not.

Now, can you think of a way with using all of that information to be able to generate really large numbers, convert them to whatever base, and order them in such a way as to virtually create a unique key for each paying customer?

I'll quite for now because you really need to come up with your own formula.

Good Luck
Reputation Points: 156
Solved Threads: 296
Posting Virtuoso
vb5prgrmr is offline Offline
1,670 posts
since Mar 2009
Jul 3rd, 2009
0

Re: creating a license ?

thanks...
that gives me an idea about what the key would be like...
what i want to know is how is it to be integrated into the program....
Reputation Points: 10
Solved Threads: 9
Junior Poster
aashishn86 is offline Offline
184 posts
since Jun 2008
Jul 3rd, 2009
0

Re: creating a license ?

Once you have the functionality tested and up and working then use that to make sure your program is licensed prior to showing any form or whatever. Easiest way is to use a sub main, make the call from there and if verified, show your form, if not display license form. If license key valid then show form, else show msgbox saying invalid key, program now exiting.


Good Luck
Reputation Points: 156
Solved Threads: 296
Posting Virtuoso
vb5prgrmr is offline Offline
1,670 posts
since Mar 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Filter data coming from serial port
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Printing in VB





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC