Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

stop reflection

Posted on 2004-09-22
3
Medium Priority
?
476 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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.   …
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

618 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