views:

110

answers:

4

Hi, Please advise, is there any web-based licensing solution, where I can generate registration codes, and validate them in the software by connecting to my licensing server?

Thank you.

+2  A: 

The first thing that comes to mind is that you could use some sort of private-key signing system to allow you to issue registration codes and then have your application verify that the registration code came from you.

That is, you could sign your registration codes with a private key and include the public key to verify the signature in your program that you are licensing.

If you want to limit the program to running on a specific computer, you could create some sort of hash representing the users computer and sign that with your private key as well.

I have been working with "Windows Identity Foundation", which uses private-key signing to check that a "security token" (a message indicating that a user is authenticated) actually came from one of my servers and not an imposter. I believe that you should be able to program your software to use a similar scheme to verify that a registration code is valid.

Rice Flour Cookies
A: 

One solution is provided here

Also see discussion here for general info.

s_hewitt
Upvoted - the OP seemed quite happy to solicit answers mentioning commercial products.
Duncan Bayne
A: 

CryptoLicensing may fit your needs. It also comes with a ready-to-use license server for validating/activating licenses used in your Desktop app.

logicnp
Upvoted this one as well.
Duncan Bayne
A: 

I'm a little hesitant to recommend a commercial product given the downvoting so far, but why not: I suggest you read the article Developing for Software Protection and Licensing and then evaluate OffByZero Cobalt.

Obligatory disclaimer: both product and article are produced by the company I co-founded.

Duncan Bayne
SO is not a platform for self promotion. Please stop spamming.
Oded
Oded: when I asked the SO team about this, their response was: "Thanks for asking -- this is generally OK as long as it actually answers the question in a reasonable way, and you add the disclaimer of "made by me/us". We generally have more of a problem with egregious cases -- users who add their product as a signature tagline, or 50% of their "answers" have to do with shilling their product. So I think you're probably ok!"
Duncan Bayne