Kishor,
>>It was an interesting solution. I recently looked into the HASP dongle method. Any idea HASP envelop method prevents from DE-COMPILING? And your remarks on HASP dongles? <<
I use dongles from
www.deskey.co.uk. They have a program called DESLOCK that will wrap the encryption around your EXE. In addition, you can do everything else you would expect with the dongle, i.e. strategic calls to the dongle from within your program.
This gives you several layers of protection:
1) The EXE cannot be read and used directly by decompilers.
2) Your application can call the dongle as normal to ensure run-time security.
3) You can ensure the client never exceeds the correct number of user licences (short of hacking the dongle code).
Point 1 also makes it more difficult for a hacker trying to identify your calls in point 2 with a view to removing them.
Nothing is 100% but this is the best I have found to try and defeat the hacker.
Regards,
Aaron