混淆大会与思考 [英] Obfuscate Assembly and Reflection

查看:162
本文介绍了混淆大会与思考的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过 Dotfuscator (.EXE * .DLL,*)混淆我的汇编文件。我的问题是,如果我这样做,我还可以用原来的名称使用在这些组件类和类型(我的意思是混淆前名称),并使用的System.Reflection 方法与他们合作?

I want to obfuscate my assembly files (*.dll, *.exe) by Dotfuscator. my question is if I do this, can I still use classes and types that are in those assemblies by their original names (I mean names before obfuscation) and using System.Reflection methods to work with them?

如果您需要更详细,请告诉我

推荐答案

模糊处理的反射能引起你一些问题。即使你拿去用选择不混淆公众方法的建议,一些反射代码可以调用私有方法。问题是混淆将改变一些代码,你可能需要保持相同的名称。

Obfuscation are Reflection can cause you some problem. Even if you take the suggestion to use option to not obfuscate public method, some of the reflected code may call private method. The problem is that obfuscation will change name of some code that you may need to stay the same.

如果您知道或可以找到很容易受到与使用的区域反射可以使用

If you know or can locate the region that is susceptible to be used with reflection you can use

[global::System.Reflection.Obfuscation(Exclude=true, Feature="renaming")]

这将告诉混淆器,以保持名称。

This will tell the obfuscator to keep the name.

与反思混淆运行需要更多的测试,这是肯定,但仍然有可能...

Running obfuscation with reflection require more testing that's for sure but still possible...

这篇关于混淆大会与思考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆