How to protect(or hide) c# code from reflector?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

In this news group I knew that Reflector for .NETis so cool.
But on the other hand I want to hide my code from it.
Is there any way to do that?

TIA
 
In VS 2005 you have "dotfuscator" to help make the code very difficult to
read, but that is a hokey solution at best and the code can still be read
and used and execution traced. Also dotfuscator does have some issues that
you need to read up on to avoid some of the problems associated with it --
you may have to change some code to make it play with dotfuscator. And if
that weren't enough, if you want the "true" version of dotfuscator you'll
have to pay for it.

On web apps the best way to protect your code is to "pre-compile" the app
and hide the directory containing the real code, leaving just the
pre-compiled stubs. For your assemblies you can use a Signed assembly and
provide a key.

I was able to set the file attribute to hidden on my DLL and still have my
app work correctly -- a minor layer of security.

Rob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top