C# .NET - How to add license functionality in my C#.NET application

Asked By Bhawana
03-Feb-12 04:09 AM
I am using C#.NET for coding and SQL Server 2005 for database.


My application is ready for release. Just on thing missing before I can go live.


I want to implement license concept in my application.


There should be some encrypted matter which will be used for validate the application.


Please suggest how I can implement this functionality in my application


Thanks
  Danasegarane Arunachalam replied to Bhawana
03-Feb-12 04:42 AM
Design a logic by your self

1. Get the machine mac id
2.Create a unique combination of registration  using MacID+CPUID and use that key as registeration key


Or else use any on like this one (http://jagregory.com/writings/rhino-licensing/)
  dipa ahuja replied to Bhawana
03-Feb-12 05:06 AM
That depends on you , which method you want to use for licensing your software:


For ex if we take example of M-S office it gives use a serial no. for each version of m-s office. and using that serial no. we can install the full version of software.


Adobe phoshop give a serial to use the software for 30-days and after that user have to register via key, by telephone or by email etc ..


in these methods also you have choice wheather you want give same serial no. for your software or you want to generate a list of valid serial no. for you software.


If you use same serial then using that serial no. user can use the full version of your software, if you use the serial based on the particular user , then each user who buy user software will get the unique serial to use ur software.


and most imp the implementation of licence or serial no. will be done in your own software at the time when user run the software. that mean at run time the first thing you have to check that is the licensing of your software then after run other forms of ur software


hope you get some idea..!
  kalpana aparnathi replied to Bhawana
03-Feb-12 05:13 AM

Assuming you don't want to do a special build for each user, then:

  • Generate yourself a secret key for the product
  • Take the user's name
  • Concatentate the users name and the secret key and hash with (for example) SHA1
  • Unpack the SHA1 hash as an alphanumeric string. This is the individual user's "Product Key"
  • Within the program, do the same hash, and compare with the product key. If equal, OK.
  Bhawana replied to kalpana aparnathi
03-Feb-12 07:20 AM
hi,

can you provide me working sample for the same
Create New Account
help
How to Implement Floating License in our application I need to implement Floating license in my application in stand alone application what will be the best way without using then connect to this service whenever it is opened, and if there is a valid license, it would allow the user to continue. Create New Account
SBS 2003 cal license Windows Server I bought a new cal license. I clicked to add the on my server SBS 2003 in server license. license page, but somehow I could not open. "operation aborted" writes. How can I add my license. thanks Windows Server SBS Discussions Meng (1) Connectivity (1) Outhttp (1) SBS (1) Print out http: / / www.freeimagehosting.net / uploads / 9c694d5d49.jpg I couldnt open license page Hello, Thanks for your post. Adding additional licenses to the SBS computer is a the Server Management console. 2. A Welcome screen will be displayed. Click Next. Read the license agreement carefully, select I agree, and then click Next. 3. A Contact Method must be method that will be used to contact Microsoft and convey the PID information from the license. Choose the appropriate contact method, and then click Next. 4. Specify the 25-character alphanumeric
Implement Virtual Key Board Hi All, As per my application requirement, I need to implment virtual
Implement connection between webparts or put two webparts in a single webpart hi, i have two
implement myjava recursion into vb6 i am writing a function in access.which clearly using vb6