Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello i have created a program and i wanna sell it online but i want it not to be able to be copied. I think that not being able to be copied can't be done.So all i need to do is to make it need a serial key to open.Can anyone tell me how to do that, how to make it open only when a serial key is given to it.Appreciate your help.!
Posted

Have a look at: Application Trial Maker[^]

Be aware that any moderately accomplished developer can easily break the protection offered by most .Net based protection mechanisms - so basically you should try to find a better way to motivate customer loyalty like subscription based extra online features.

Best regards
Espen Harlinn
 
Share this answer
 
Comments
thatraja 9-Feb-12 0:39am    
Frequently I'm using that article in Q/A, 5!
Espen Harlinn 9-Feb-12 3:35am    
Thanks, I picked it up from one of your answers :)
Sergey Alexandrovich Kryukov 9-Feb-12 12:34pm    
Sure, a 5.
--SA
Espen Harlinn 9-Feb-12 15:28pm    
Thank you, Sergey!
You write code that checks the serial number. And if you don't want people to copy the serial number and share it, you make the serial relate only to the selected machine, which you do with WMI. And if you want it to work, you need to obsfucate your code with an expensive tool, or rewrite it in C++. At the end of the day, you need to strike a balance between making it safe, and being a PITA to your genuine users.

If there was one bit of code that did this for everyone, then every piece of code would be cracked the same way. It's up to you to write something that suits your needs.
 
Share this answer
 
Comments
thatraja 9-Feb-12 0:39am    
5!

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