C# ANTI-REFLECTOR SOURCE

How can I make my application, so no reflector software can get it's source code?

 

There is no way to prevent reflector from extracting "source code" from an assembly.  What reflector is doing is just reverse-engineering the code from the IL code and metadata in the assembly.  It is actually possible to reverse-engineer any sort of application, such as one compiled in native C++.  However, because of some of the properties of IL and all the metadata that .NET stores in assemblies (which is needed by the CLR for linking and other things), reflector and programs like it are able to derive source code that is much more readable than what it typically possible with native applications.

For example, .NET metadata includes names of class fields, and so the reflector is not only able to reconstruct the structure of the class, but also the descriptive names.

You can't stop people from using reflector, but what you can do is use an obfuscator that jumbles all the names in the assemby and performs transformations on the code that do not modify its behavior but makes it much harder to understand.  If someone tries to use reflector on an obfuscated assembly, they will have a very hard time understanding the resulting source code, and it will most likely be useless to them because it would be easier for them to write their own code from scratch rather than try to steal yours.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值