隐藏C#Windows应用程序源代码 [英] Hide c# windows application source code

查看:302
本文介绍了隐藏C#Windows应用程序源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用C#.Net 2.0编写了一个Windows应用程序,我想做一些隐藏源代码的事情,所以当任何使用重构工具的人都看不到源代码时。
我使用了dotfuscator,但它只是更改了函数名称,但并没有更改所有源代码。

I wrote a windows application using C# .Net 2.0 and i want to do something which hide the source code, so when any one use refactor tool can't see the source code. I used dotfuscator but it just changed the function names but not all the source code.

更新:
我想隐藏源代码,不是因为隐藏了密钥,而是因为隐藏了代码的工作原理。

UPDATE: I want to hide the source code, not because of hiding the key, but to hide how the code is working.

谢谢,

推荐答案

好吧,源代码是您自己的,除非您明确提供它,否则您可能仅会提供已编译的二进制文件。

Well, the source code is yours and unless you explicitly provide it, youll perobably only be providing compiled binaries.

现在,这些已编译的二进制文件是IL代码。为防止有人反编译并将您的IL代码反向工程回源代码,您需要对IL代码进行混淆。这是通过代码混淆器完成的。市场上有很多。

Now, these compiled binaries are IL code. To prevent someone "decompiling" and reverse engineering your IL code back to source code, you'll need to obfuscate the IL code. This is done with a code obfuscator. There are many in the marketplace.

您已经使用dotfuscator完成了此操作,但是,您说它仅更改了函数名称,而不是全部源代码。听起来您正在使用Visual Studio随附的dotfuscator版本。这实际上是社区版,仅包含专业版功能的一部分。请参阅此链接以获取以下内容的比较矩阵社区版和专业版的功能。

You've already done this with dotfuscator, however, you say that it only changed the function names, not all the source code. It sounds like you're using the dotfuscator edition that comes with Visual Studio. This is effectively the "community edition" and only contains a subset of the functionality of the "professional edition". Please see this link for a comparison matrix of the features of the community edition and the professional edition.

如果您想对代码进行更多的混淆处理(特别是为了防止使用Reflector等工具对人的攻击),需要专业版的Dotfuscator或其他包含类似功能的代码混淆器产品。

If you want more obfuscation of your code (specifically to protect against people using tools such as Reflector), you'll need the professional edition of Dotfuscator, or another code obfuscator product that contains similar functionality.

这篇关于隐藏C#Windows应用程序源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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