I made a software and i need to make a protection on it , so i need to a hardware dongle to the PC with USB , i have a good experience in ucontroller programmin so please any one guide me
Hi,
you have a many different ways to solve the problem, but first you must know what exactly you need. Do you need to lock software to the PC or not?
The simple way is to send encrypted string to the dongle, dongle should decrypt the sting, make some processing and return to you against encrypted string. If the result is right the software should be started. In google you can find many encryption algorithms.
i think the best way for protecting a software is using the software locks.for example you can use some software which encrypt you exe code with a key which no body can't dicompile it and so if you send the key to user then the user will be able to use your software.
you know if you use a dongle the hackers can decompile your code and then understad what are you doing and how you check the dongle and then they can pach your code easily.