Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

How to generate system specific licence file/key using c#?

My software should launch after provided validate licence file only else should through error.

Thanks in Advance.

Ankit Agarwal
Software Engineer
Posted

1 solution

what we do in one of our application is to store the mac address of the system. once the system open it will show mac address and ask for license key, now user will call the support team and ask for key , we use some encryption/decryption mechanism to generate a key based on the mac address. we provide this key to user, once he enter the key and submit this entry will save in their database. so next time when the user login system will find that mac address and the key based on that will be saved in the database so it will not ask for license.


you can read below link on how to get mac address

get MAC address in message box using c#[^]
 
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