Solved

stop reflection

Posted on 2004-09-22
3
469 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

832 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