保护我的代码 [英] protect my code

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

问题描述




几个月前我已经问过这个话题了,但我没有得到任何满足我的答案,因此我是'''再问一遍。


我想知道如何保护我的代码(C#.NET)不被反编译和滥用。
> C ++中的
,我们写的是Win32 native。所以你无法看到任何

命令行或变量......


我想在C#中开发一个应用程序,还有一些控件,但是如果我不确定我的代码是否会受到保护,那么
i将不会这样做。

100%(或者至少是最高......对于完美主义者而言) 。


那么您对该主题的看法是什么?

目的是能够在以后出售此应用程序或控件...


非常感谢,


A.

解决方案

>根据我的理解,您几乎不可能确保您的

代码100%安全。你只能采取措施让人们更难以反编译和理解代码。


确保代码安全有两个不同的方面。


首先要确保没有人可以修改你的程序来改变它的功能。有一个解决方案,相当安全

并内置于visual studio中。它被称为签名并允许你签署你的代码,以便如果其他人更改二进制文件,那么dotnet

框架就不会运行该软件。你应该能够找到很多关于签署程序集的例子。


第二步是阻止其他人反编译代码然后

通过更改或修改重新填写它。这更难分配

来预防,因为几乎不可能100%停止。

问题是在你需要计算机理解你的程序的时候结束的一天,所以黑客也可以访问它。

你可以做的就是让黑客尽可能地努力了解你的代码一旦被反编译,就会理解你的代码。这就是

混淆的地方。这样做是为了让你的代码尽可能不可读,以便在反编译时你所看到的就是

许多无意义的变量和难以遵循的程序流程。

你得到一个Visual Studio 2005的混淆器,并且有很多

的第三方。这是一个简单的工具,你在你编译的

二进制文件上运行。


blockquote>

我想知道如何我可以保护我的代码(C#.NET)免受


反编译和滥用。



似乎Visual Studio的非Express版本附带了一个

混淆器''Dotfuscator''(什么是'一个名字)但你可能没有

访问它。我找到了一个免费软件混淆器

http:// www。 rustemsoft.com/SkaterLight.zip


但我不知道它有多好


最好的方法测试这种事情就是试着破解它自己。您可以轻松下载.net反编译器,然后查看

查看代码是多么容易。


我也会在论坛帖子上搜索到看看是否有人

推荐或批评它。我总是发现

安全性,最好不要去免费的东西,因为你没办法

知道谁有权访问它。销售安全的公司

软件有兴趣确保其安全性。


Hi,

I already asked about this topic few months ago, but i did not get any
answer which satisfied me, therefore i''m asking it again.

I would like to know how i can protect my code (C#.NET) from being
decompiled and abuse.
in C++, we write in "Win32 native" so you are not able to see any
commandline, or variables,...

I would like to develop an application in C# as also some controls, but
i will not do it if i''m not sure that my code will not be protected at
100% (or at least to maximum...for perfectionists).

So what is your point of view on that topic ?
the purpose is to be able to sell this application or control later on...

thanks a lot,

A.

解决方案

>From what I understand it is almost impossible for you to ensure your
code is 100% safe. You can only take steps to make it harder for
people to decompile and understand the code.

There are two different aspects to ensuring your code is safe.

The first is to ensure that no one can modify your program to change
its functionality. There is a solution to this which is fairly secure
and is built into visual studio. It is called signing and allows you
to sign your code so that if others change the binary the dotnet
framework simply will not run the software. You should be able to find
plenty of examples on signing your assemblies.

The second step is to stop others from decompiling the code and then
re-compilling it with changes or modifications. This is allot harder
to prevent and as it stands almost impossible to stop 100%. The
problem is at the end of the day you need the computer to understand
your program and so a hacker will also be able to gain access to it.
What you can do though is make it as hard as possible for a hacker to
understand your code once it has been decompiled. This is where
obfuscation comes in. What this does is try and make your code as
unreadable as possible so that when it is decompiled all you see is
lots of meaningless variables and difficult to follow program flows.
You get an obfuscater with Visual Studio 2005 and there are lots of
third party ones. It is a simple tool that you run on your compiled
binaries.



I would like to know how i can protect my code (C#.NET) from being

decompiled and abuse.


It seems that the non-Express Editions of Visual Studio ship with an
obfuscator ''Dotfuscator'' (what''s in a name) but you probably do not have
access to it. I found a freeware obfuscator at

http://www.rustemsoft.com/SkaterLight.zip

but I have no idea how good it is


The best way to test this sort of thing is to try and hack it
yourself. You can easily download .net decompilers and then look at
how easy it is to see the code.

I would also do a search on forum posts to see if anyone is
recommending or criticizing it. I have always found though with
security that it is best not to go for free stuff as you have no way
of knowing who has access to it. A company that sells security
software has an interest in ensuring its security.


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

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