Is there a way to prevent dll from being opened in a software like reflector?

社会主义新天地 提交于 2019-12-04 14:05:34

Are you sure that these DLLs are managed-code-dlls? I don't think so, if they don't contain the CLI header, they aren't written in C#.

And for your question, you can't prevent a managed-DLL from being opened in a decompiler, all what you can do is to obfuscate it.

If you want to protect your .net dll you could obfuscate your assembly

Free .NET Obfuscation Tools

You have commercial ones too...

"The particual dll does not contain a CLI header.". message appears in Reflector because they are not managed dlls (.net).

I thought there was once a certain IL code which caused a crash in the reflector. But this bug is fixed now.

Obfuscation is nice - You can also try to encrypt certain critical parts of your code and decrypt+load+compile it at runtime. The problem is how to store the password.

You can't prevent it from being opened by the reflector.

There is no way to prevent Reflector from opening .Net assemblies, but you make make it pointless by obfuscating your assemblies. After obfuscating, class/method/fields are renamed, inline strings in methods are encrypted, method calls are hidden, method control flow is scrambled and so on. So, anybody who use Reflector will see a lot of garbage and will not be able to make sense of most of it.

DISCLAIMER: I work for LogicNP Software, the developers of Crypto Obfuscator

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!