C#Windows应用程序的反编译器 [英] Anti-Decompiler for C# Windows Application

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

问题描述

你好,

我已经在C#4.0中开发了一个Windows应用程序.
我想将其安装在客户端计算机上.但是我担心逆向工程"/反编译器.

如何保护我的exe文件?
哪个是最好的反编译器(最好是免费的)?
如何存档exe文件,以便没人能从7Zip中提取该文件或阻止对该文件进行反编译?

解决方案

您正在寻找的是代码混淆.那里有许多免费(收费)选项供您选择.这是一个带有多个选项的堆栈溢出问题:

http://stackoverflow.com/questions/805549/free-obfuscation-tools-for-net [^ ]


无法阻止反编译,但正如Tim所言,您可能很难理解,难以理解反编译的代码.

至于7Zip部分,您可以加密文件(通过在7Zip的添加到存档"窗口的加密"部分下输入密码),但是您必须将密码提供给客户端,否则他们将无法提供密码" t使用该程序(或自己解压缩该程序,但最终他们都可以访问该exe,否则他们将无法运行该程序).

但老实说,我不会那么担心,只要您对代码进行混淆,对于某人从头开始可能比对您的代码进行反向工程更容易.


Hello,

I have developed one Windows Application in C# 4.0
I want to install it on client machine. But I am worried about "Reverse Engineering"/Decompiler.

How I can protect my exe files?
Which is the best Anti-Decompiler (Preferably Free) ?
How to archive exe file(s) so no one can extract it from 7Zip or prevent de-compiling of the same?

Your help is very appropriated!!!

解决方案

What you are looking for is code obfuscation. There are a number of free (and paid) options for you out there. Here is a Stack Overflow question with a number of options:

http://stackoverflow.com/questions/805549/free-obfuscation-tools-for-net[^]


There''s no way to prevent decompilation, but you can make it very difficult to understand the decompiled code with obsfucation, as Tim mentioned.

As for the 7Zip part, you can encrypt the file (by entering a password under the encryption section in the "Add to Archive" window of 7Zip), but you''d have to give the client the password or else they couldn''t use the program (or extract it yourself, but either way in the end they have access to the exe, otherwise they can''t run it).

But honestly, I wouldn''t be so concerned, as long as you obsfucate the code it would probably be easier for someone to start from scratch than it would be to reverse engineer your code.


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

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