?
Solved

stop reflection

Posted on 2004-09-22
3
Medium Priority
?
474 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 4

Accepted Solution

by:
jrandallsexton earned 1200 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 800 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

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

800 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