By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,954 Members | 1,354 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,954 IT Pros & Developers. It's quick & easy.

How to protect C# code?

P: n/a
I happened accross a web site today for a company that demos their C#
decompiler, called Salamander (Just google "Salamander decompiler").

I uploaded my assembly and to my horror everything was decompiled !

Now, I'm not unfamiliar with decompiling code because as a former Java
programmer I've seen how vulnerable that was to decompiling. But I always
thought C#'s exe files were just like C++'s exe files- where there was no way
you can decompile them. (OK technically you can decompile anything into
Assembly code but if you're good enough to follow millions of lines of
assembly code as well as I can follow higher level C++ code then I'm not
worried about you looking into my code, you could write something alot
better!)

But anyway, is there any solution out there to thwart these decompilers? I'm
not really worried about my program working on other Operating systems or
plugins or anything like that, I just don't want someone decompiling my
program into it's actual C# code...

Thanks
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
MrNobody <Mr******@discussions.microsoft.com> wrote:
I happened accross a web site today for a company that demos their C#
decompiler, called Salamander (Just google "Salamander decompiler").

I uploaded my assembly and to my horror everything was decompiled !

Now, I'm not unfamiliar with decompiling code because as a former Java
programmer I've seen how vulnerable that was to decompiling. But I always
thought C#'s exe files were just like C++'s exe files- where there was no way
you can decompile them.
No, .NET executables are far more like Java class files than native exe
files, in terms of the code contained.
But anyway, is there any solution out there to thwart these decompilers? I'm
not really worried about my program working on other Operating systems or
plugins or anything like that, I just don't want someone decompiling my
program into it's actual C# code...


See http://www.pobox.com/~skeet/csharp/faq/#obfuscation

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.