Hi. I would like to find out a simple way to encrypt my published code so that it cannot be read by any type of source code determining software which can decompile my source code to its design-time state.
What is the easiest way to do this?
I see 'Enable strong naming on precompiled assemblies' option on publishing. Is this the (only) way? Any examples of an easy way to get started?
I do not think that this is a big problem for web applications, unless you are worried about you ISP stealing your code. Remember, web application store the code on the server, where no user browsing your site have access.
There is a technique which obfuscates your code: See here:
Obfuscation
Even though you have used the obfuscation method, it will not block the .aspx file. However, if you do not give your code-behind (.cs or .vb file) to someone else, no one can easily steal your code.
pizzamaker74
Member
429 Points
367 Posts
Protecting Published ASP.NET Site with Encrypted code
Jan 23, 2012 10:41 PM|LINK
Hi. I would like to find out a simple way to encrypt my published code so that it cannot be read by any type of source code determining software which can decompile my source code to its design-time state.
What is the easiest way to do this?
I see 'Enable strong naming on precompiled assemblies' option on publishing. Is this the (only) way? Any examples of an easy way to get started?
Please help. Thanks.
p
sivilian
Contributor
6235 Points
1194 Posts
Re: Protecting Published ASP.NET Site with Encrypted code
Jan 24, 2012 02:22 AM|LINK
I do not think that this is a big problem for web applications, unless you are worried about you ISP stealing your code. Remember, web application store the code on the server, where no user browsing your site have access.
There is a technique which obfuscates your code: See here: Obfuscation
hope this helps,
sivilian
pizzamaker74
Member
429 Points
367 Posts
Re: Protecting Published ASP.NET Site with Encrypted code
Jan 31, 2012 04:01 AM|LINK
Yes, I'm worried about code being stolen.
Are there any good examples anywhere of how to protect the code?
necro_mancer
Star
8017 Points
1574 Posts
Re: Protecting Published ASP.NET Site with Encrypted code
Feb 01, 2012 03:04 AM|LINK
hi pizzamaker,
Even though you have used the obfuscation method, it will not block the .aspx file. However, if you do not give your code-behind (.cs or .vb file) to someone else, no one can easily steal your code.
Please do not worry :)
Professional SQL 2008 R2 Service
kctt
Contributor
5004 Points
948 Posts
Re: Protecting Published ASP.NET Site with Encrypted code
Feb 02, 2012 01:08 AM|LINK
Precompile website to dll file is the common method.
Your hosting provider won't bother to steal your code.
If website is critical, you can host on a vps or dedicated server which only you have access.
pizzamaker74
Member
429 Points
367 Posts
Re: Protecting Published ASP.NET Site with Encrypted code
Feb 02, 2012 04:19 AM|LINK
I'm concerned about access to the site internally and decompilers.
http://forums.asp.net/t/935777.aspx
pizzamaker74
Member
429 Points
367 Posts
Re: Protecting Published ASP.NET Site with Encrypted code
Feb 09, 2012 05:18 AM|LINK
Ideas anyone?