I have VS.net 2003 standard.
I think vs.net 2003 architect have a tool for protect your assembly
Main Topics
Browse All TopicsI believe I read somewhere that there is a switch in Visual Studio, or just on the compiler, where you can flag the exe or dll to try and protected against decompilation. Currently I can view nearly all my code, without any problem just using Lutz Roeder's .NET Reflector. Security wise, this is not good.
Anyone know off hand? Or have any suggestions to protect against this? Thanks in advance.
- Joe
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Realize, though, that obfuscation just makes it harder, not impossible to read your code. Also, there are some circumstances where obfuscation is undesirable:
Debugging
Obfuscated code is extremely difficult to debug. Variable names will no longer make sense, and the structure of the code itself will likely be modified into unrecognizability. This fact generally forces developers to maintain two builds: One that can be easily debugged, and another for release. Both builds should be tested to make sure they act identically.
Defective obfuscators
Occasionally an obfuscator may be buggy, in a difficult to reproduce way. There is little one can do except find a newer version or fiddle with any inputs to the obfuscator until it works.
Bob
This is for a ASP.NET application, which I have to have the connection string for the database in the program. I have the string encrypted, though if the DLL is downloaded the entire application could be at risk. I was just looking to see if anything was out there. The security risk is overall minimal, though nearly completely compromised if it is taken.
I'm building a ASP.NET E-Commerce application, so I'm trying to see how I can best protect the application. If obfuscator is the only option, then I guess I can either take the risk (Which overall is minimal, because they'd have to hack the server ... which isn't impossible, but fairly rare) or see if I can talk the boss into purchasing the program.
I'm confident in the hosting company I'm with, though like I said ... any more security I can put in on my part I'm trying to do.
- Joe
Hm, strange. You know, I used to be the main admin for a hosting company, and we did set up a NT user for each web (for the anonymous account), so that we had clear boundaries and could set correct rights for each web without the possibility of one web accessing another (not even reading). And this also allowed SSPI authetication for the webs, again with proper security on the DB. We had shared hosting servers with 50-100 webs per server, and no problems whatsoever... (note that I hold the SANS/GIAC GCWN cert, so I do have some windows security expertise).
Well, I will contact my hosting company and double check to see if this is available. I would much prefer to go that option. I just had thought it wasn't available from what I had read in their "Knowledge Base" FAQ. Their only advise that I found was "Don't include a string litteral in your web.config file" for your connection string.
- Joe
I appologize for the delay.
The original question was if there was a compiler switch ... which I've found that there isn't. Though dotfuscator was suggested, unfortunately it is not a viable option.
There was also the suggestion to use SSPI authentication, though I believe that pertains to SQL Server, and I'm using a MySQL database.
I guess you could say, I found out that for sure, there is no viable option for me. Splitting the points between Gerente and AvonWyss.
- Joe
Business Accounts
Answer for Membership
by: GERENTEPosted on 2004-10-15 at 19:52:16ID: 12325804
Sure, Dotfuscator its a good choice. products/d otfuscator /
http://www.preemptive.com/