Solved

stop reflection

Posted on 2004-09-22
3
467 Views
Last Modified: 2008-02-26
Is there a simple way to prevent people from using a tool such as Reflector to disassembled .NET assemblies?

In our code, we use reflection sometimes to invoke methods of our own assemblies, and this we'd like to permit from within our own assemblies. But as for other people using tools, is there a way to prevent them from peeking at the code?

Thanks
0
Comment
Question by:gregasm
3 Comments
 
LVL 4

Accepted Solution

by:
jrandallsexton earned 300 total points
ID: 12125749
As far as I know, obfuscation is the only means of preventing reverse engineering.

Check out this utility from Microsoft, it should help you out.  I personally have not tried it.

http://www.gotdotnet.com/team/dotfuscator/


0
 
LVL 4

Assisted Solution

by:vigrid
vigrid earned 200 total points
ID: 12128141
Another hardcore method would be to encrypt your DLL assemblies and load them via some kind of decrypting stream and then use reflection :D. Oh, you need to store the key to decrypt the file, so this method sucks. Or you can use an USB token with own memory to store the key... What do you want to protect?
0
 
LVL 8

Author Comment

by:gregasm
ID: 12129044
Thanks.

What do I want to protect? Just to prevent reverse engineering.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now