I have created a ASP.NET application and I want to sell my code/ website. Which is the best way of doing this without allowing people to copy my program and give it away.
It it possible to put a product key in a web page ?
Well, the best way to do it is to sell the .dll's (and .aspx, .ascx, etc. - if it's a full website). I'd also go through legal junk, like "you cannot re-sell this code... blah blah blah" - usually a good idea to have a lawyer draw this up if you're serious about it.
When it comes down to it, the best way to keep your code secure is to not sell it If someone really wants your source code from the .dll's, etc., they just have to be decompile the binary files. Ethical? No. Legal? No. Do some people care? No.
there is something called a 'key' that I've seen in the book ASP.NET Website Programming - Problem - Design - Solution. It's a file with an .SNK extension that we create as developers. I believe they say it's for making all your assemblies appear to come from the same vendor...I don't know if it provides any security, but it's something to research.
Good luck
You could use an obfuscator to mess your code up when you compile to make it harder for someone to decompile and make sense of...Do a Google for .NET obfuscator and you'll get plenty of hits. Some are free (Microsoft give one away) others cost. But if your serious about protecting your code this is one way of approaching this.
Alternatively you code do something akin to Application Service Provision where you host the functional components on your own URL as web services and sell people applications which use these functional components. That way you get to keep your source code to yourself while selling people a shell which utilises the functionality.
Rob
Every gun that is made, every warship launched, every rocket fired, signifies in the final sense a theft from those who hunger and are not fed, those who are cold and are not clothed - Eisenhower 1953
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.