如何保护我的C#代码 [英] how to protect my C# code

查看:91
本文介绍了如何保护我的C#代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想保护我的dll免受反汇编程序的影响。



我使用c#创建了类库。我从Build获得了dll。如果我使用反射器反汇编这个dll,它会显示原始源代码(C#代码)。



我想保护它。你能建议保护好主意吗?



我不想要任何保护软件。我需要通过添加更多代码来实现这一点,以提高安全性。或者你认为最好的其他任何技术请告诉我。

I want to protect my dll from the disassembler.

I created class library using c#. And i got dll from Build. If i disassemble this dll using reflector the it show the original source code (C# code).

I want to protect this. Can you please suggest any good idea to protect?

I do not want any software for protect. I need to achive this by adding some more code for make more security. Or anything other technique if you think best please tell me.

推荐答案

你能做的最好的就是使用一个混淆器工具 [ ^ ]。

这也不是完全可靠的,可以反编译(虽然它更难这样做。)
The best you can do is use an Obfuscator tool[^].
This is also not completely fool proof and can be decompiled (although its much harder to do so).


如果你真的认为你需要它,请仔细阅读这个想法。这是.NET。逆向工程软件的制造商声称即使是最强大的知名保护软件也很容易打破,我倾向于相信这一点。普通用户甚至不会尝试,但那些决心对您的代码进行逆向工程的人将很容易做到。好吧,你可以模糊你的代码只是为了使代码难以理解,过滤掉像典型的CodeProject查询者那样的懒惰用户。 :-)



还想想,你的软件是否有价值?大多数软件产品都不值得。



-SA
If you really think you need it, thoroughly review this idea. This is .NET. The manufacturers of the reverse-engineering software claim that even the strongest well-known protection software it quite easy to break, and I tend to believe that. Normal user won't even try it, but those determined to reverse-engineer your code will do it easily. Well, you can obfuscate your code just to make understanding of the code difficult, to filter out just lazy users like typical CodeProject enquirers. :-)

Also think, is your software that valuable? Most software products don't worth the effort.

—SA


这篇关于如何保护我的C#代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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