Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to protect my software from pirates?
How to use USB DONGLE to protect my software?

[edit]SHOUTING removed - OriginalGriff[/edit]
Posted
Updated 24-May-13 1:59am
v2
Comments
OriginalGriff 24-May-13 7:59am    
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.
[no name] 24-May-13 8:37am    
Read the documentation for whatever hardware you are using. And/or contact the manufacturer.

1 solution

The external device should contain the license of your software. That is your application, at startup, should verify that the external device is connected and contain a valid licence information.
Such information should be hard-coded inside the dongle in a way it cannot be simply copied to a similar device (e.g unique hardware-identifier).
 
Share this answer
 
Comments
JYOTIRMOY SAMANTA 24-May-13 8:16am    
I am using VB.NET 2010
How to implement that in my software?
how to read data from USB DONGLE, How to write to a USB DONGLE?
CPallini 24-May-13 8:23am    
Unless you have a custom device, your USB dongle is (probably) a USB pendrive, i.e a removable hard disk. You can write to it using standard file access facilities, like, for instance, the BinaryWriter class.
JYOTIRMOY SAMANTA 24-May-13 8:29am    
Then someone can copy the whole content of that pen drive to another pen drive and use that as another key,
How to lock the USB Pendrive from write access? Readonly Pendrive like CD ROM,DVD ROM
One time write.
CPallini 24-May-13 11:12am    
As I suggested you probably need a special kind of USB key, provided with unique, HARDWARE, ID.

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