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

i want to run my vb.net application in only one machine. like licence version.
Posted

you need to check the unique hardware ID/serial no of that machine and validate it in your code.

Use MACID to validate for uniqueness. Get MACID of computer encrypt it and store it in .TXT file. when user try to login the application check the MACID from TXT file should match with the computer's MAC.
 
Share this answer
 
Comments
[no name] 19-Sep-11 8:36am    
i want solution like serial number. one serial number run in only one PC.
#realJSOP 19-Sep-11 8:43am    
Then why didn't you specify that in your original question? We can't read your freakin' mind, dude.
Buy a third-party library. That's the best route because it's mature, and hopefully well supported.
 
Share this answer
 
It is obvious to use a 3rd party component, this would give you more security.

Too easy to hack method but works:
- encrypt with aes a string like "%^&$42vf this part is allways the same %!#74"
you can change the outher text every time you give a key

- use a aes decryptor in your program
- find the sub string: "this part is allways the same"
- if it is found then the key is valid
 
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