Click here to Skip to main content
15,879,326 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Could u please provide the code for generation of licence keys dynamically in c# .net.
Posted
Updated 18-Jun-12 3:13am
v2

Sorry, but no, we can't.
We have no idea what you want to base your licence key on, what info you want in it, or any other info about it.

There is an article which may help you to create your own scheme: License Key Generation[^]
 
Share this answer
 
The "code" for doing this isn't that simple. I could not give you a solution based upon a one-sentence requirement. There are a number of things you need to consider. For example, how do you want the key to be generated (based off of computer information, user information, registration information, etc.)? Next, do you want to store this information centrally so the application can look to a server to verify itself or do you want to trust your application to verify its own key?

Here is a Stack Overflow question that has some great answers to this type of question:

http://stackoverflow.com/questions/453030/how-can-i-create-a-product-key-for-my-c-sharp-app[^]

While I'm not necessarily saying you have to use a commercial application to do this, look through what this commercial application does and why:

http://www.eziriz.com/[^]

Now look at what you were trying to do. Is what you were trying to do going to solve the issues that this application solves? Does it need to? Usually I find that people don't realize how big an issue this can really end up being. Other times, people just want something simple and they find that creating keys might not be a simple solution but that there are alternatives.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900