How to hide code of .NET dll [aspnet + c#]

G

Guest

I have found few days ago that .NET dll can be reversed to view all source
code.

I have used Dotfuscator but it only renames variables etc.

I want to hide code.

Please reply with some concrete solution.

thanks in advance

with regards,
 
K

Kevin Spencer

If the computer can read it, so can you. You can reverse-engineer any
software. .Net code is similar to Java in that both technologies use an
intermediate byte code rather than being fully compiled. If you did not know
this, you're not likely to need to hide your code from anyone. In fact, the
best way to defend yourself against competition is to stay ahead of the
competition. Anyone that is copying your code is already behind you.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

Big thicks are made up of lots of little thins.
 
S

Steve Barnett

Sorry to jump in here, but this triggered a thought. Isn't there an option
to compile to native code rather than IL?

Assuming I haven't just made up that feature in my own private world...
would that be more secure than the compile to IL (I mean from the casual
hacker)?

Steve
 
J

Jim

Take a look at the "How to secure the dotnet code" thread below, as it seems
to be covering the same thing.

Jim
 
K

Kevin Spencer

Hi Steve,

Yes, you can compile to native machine code. And that is harder to hack.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

What You Seek Is What You Get.
 
J

Jim

You can't compile c# .net code into native code using Visual Studio. Its
simply not possible.

But if you use a third party tool such as those offered by
www.remotesoft.com or www.pvlog.com they will take your IL code and
transform it into native machine code.

It is possible to ngen the code with VS, but you will still have all the
metadata intact, which probably does not solve what you are trying to
achieve.

HTH

Jim.
 

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

Top