Click here to Skip to main content
15,911,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can i secure my application like any other software,valid up to 1 month and how to assign serial number,while user install setup file,without serial number that cannot go ahead help me.
Posted
Updated 25-Apr-11 8:01am
v2

What you are asking for is a Licensing option.

There are different ways to achieve it:
1) encrypted license files that contains the expiry dates
2) encrypted license keys held in the registry
3) challenge/response mechanism which require an internet connection
4) many more.......

Try: License Key Generation[^] or: How can I create a Product Key for my C# App[^] or: c# Licensing[^]
Couple of them are in C# which can be seen to start on Vb.NET
Also,
Cryptography 101 for the .NET Framework[^]

Hope this helps.
 
Share this answer
 
Comments
Manfred Rudolf Bihy 25-Apr-11 15:20pm    
CP doth have the answers. 5+
:)
Sandeep Mewara 26-Apr-11 0:12am    
Thanks MRB!
thatraja 25-Apr-11 21:57pm    
Good bunch.
Sandeep Mewara 26-Apr-11 0:12am    
:)
This is a very complex and serious question. Actually, you will never find a complete answer or ready sample code on this question because it is a matter of security. If you want to keep something secret you probably do not tell about it on Internet. But there are some ideas (usually on forums) that can be found to give you a point to start. As Sandeep Mewara already mentioned here the main solutions used nowadays:
- to control your installation via Internet with trial period (used by Microsoft, for example). Theoretically, this way you can limit functionality of any unregistered or cracked application (or even stop it).
- use encrypted license file together with Registration key entered by the user (can be used to register application on any machine even not connected to Internet). This requires some knowledge of cryptography and CryptoAPI on Windows.
The first way is preferred if you want a full control of your licensing procedure and installations and do not care if Internet is present or not. The second way is an universal one (to some extent).
Simple registration based on RegKey written in Registry is considered prone to cracking nowadays.
You either limit the functionality of trial version (easier to implement) or use a trial period (30-days, for example).

Sergey Chepurin.
 
Share this answer
 
v5

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