4

我刚刚发现,即使我混淆了我的应用程序,它仍然可以使用代码注入来破解。这几乎让 C# 对我来说完全没用。真的没有办法保护或使这个过程很难做吗?“破解者”是否必须知道任何类名等才能做到这一点?谢谢!

更新:我正在尝试保护二进制(exe)而不是代码。

4

4 回答 4

2

我从几个用户那里读到这里的某个地方,无论代码是用什么写的,都可以反编译。这样想,系统怎么会知道如何运行代码呢?这是同一个概念。

不过通常情况下,大多数开发人员(据我所知)并不太担心这一点。当然,这是一个很好的理由,不要在代码中包含任何敏感细节,而是在其他地方。

于 2012-12-17T19:18:57.067 回答
0

Any of the .NET languages, and Java can be de-compiled. This includes .Exe and .dll files. What you will need to do is get an tool that obfuscates the code.

I've listed one below for you so you can get an idea: http://www.red-gate.com/products/dotnet-development/smartassembly/

于 2012-12-17T19:20:22.840 回答
0

If you're worried about protected industry secrets, it's impossible to send a computer the right instructions, but expect those instructions cannot be read by a capable person. If your goal is to stop somebody from modifying your EXE, why not simply sign your executable?

http://blogs.msdn.com/b/shawnfa/archive/2007/01/10/combining-strong-names-with-authenticode.aspx

于 2012-12-17T19:20:42.707 回答
0

你确定你的代码值得有人这样做吗?很少有应用。

于 2012-12-17T20:17:43.083 回答