Access modifiers like internal and sealed have nothing to do with obfuscation or code security, they just tell other classes how to interact (or not interact) with them.
At the end of the day, you can do nothing to prevent piracy. Everything created by one person can be violated by another. There are many questions on SO regarding product keys, software security, etc., which you can find if you use the search engine in the upper right corner. All answers cover a few basic ideas that anyone with a little feeling will tell you:
- Put enough effort into your anti-piracy efforts to crack software a little less convenient than tearing a credit card. If this is really difficult to do, you are loading your client base too much.
- If you focus on creating positive relationships with your customers, rather than on the assumption that they are criminals, they will be more willing to give you money.
- Most customers β individuals and especially companies β are not interested in opening their assemblies and trying to figure out how to get away without paying you. For individuals, they still will not pay for it, so as not to lose the sale; and companies will not risk mountains of cash in legal problems for the cost of some software licenses.
Investigating cryptography with public / private and elliptical keys , and you will find ways to protect your key algorithm, but this will only prevent a key from being cracked, not bypassing it.
Rex M 02 Feb '09 at 1:44 2009-02-02 01:44
source share