如何加密您的代码,以使人们不会对您的软件进行反向工程 [英] How to encrypt your codes so people doon't reverse engineer your software

查看:77
本文介绍了如何加密您的代码,以使人们不会对您的软件进行反向工程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在做一个项目,并想将其用于我正在开始的业务.
我不希望我的代码是开源的.我希望该人使用我将开发的软件,但看不到我的代码;就像您购买Windows软件一样(所有代码均已加密).如何为正在开发的程序包执行此操作?

如果代码在一个平台上进行了加密,是否仍将在另一平台上进行加密? (我知道这是一个愚蠢的问题:()

提前非常感谢.

Herve

Hi,

I am doing a project and would like to use it for a business i am starting.
I don''t want my codes to be open source. I would like the person to use the software i will develop but not see my codes; just like when you buy a Windows software (All their codes are encrypted). How can i do that for the package i am developing?

If the code is encrypted in one platform, will it still be encrypted in another platform? (I know this one is a stupid question :( )

Thanks very much in advance.

Herve

推荐答案

您不必随应用程序一起发布源代码-大约唯一的一次是您将代码作为开放源代码发布.
只需释放编译后的可执行文件和任何DLL,您就可以了.

普通的可执行文件没有经过加密:它们看起来只是那样,因为它们被编译成机器可以理解的语言:例如,C ++可以编译成本机代码(由处理器直接理解),C#可以编译成IL(.NET可以理解的近乎本机的代码). NET执行引擎).

对于平台,本机代码仅在为其编译的平台上起作用:PC上的PC,ARM上的ARM等.

可以对任何软件进行逆向工程和检查(否则处理器将如何理解它?),但是对于实际应用程序却不常见.对于.NET,有名为Obfuscators的软件包,如果需要,可以使此过程变得更困难.

除非您将软件出售给大众市场并且对保护真正抱有偏执,否则您可能会花更多的时间和金钱来保护软件,而不是节省销售损失!
You don''t have to release your source code with your application - about the only time that happens is when you do release code as open source.
Just release the compiled executable and any DLL''s and you will be fairly ok.

Normal executables are not encrypted: they just look that way because they are compiled into language the machine understands: C++ for example compiles into Native Code (understood directly by the processor), C# compiles to IL (a nearly-native code understood by the .NET execution engine).

As for platforms, Native code will only work on the platform it is compiled for: PC on PC, ARM on ARM, etc.

Any software can be reverse engineered and examined (otherwise how would the processor understand it?) but it is unusual to do this for real-world applications. For .NET there are packages called Obfuscators which can make this process harder if you need it.

Unless you are selling your software into the mass market and are really paranoid about protection, you will probably spend more time and money on protecting your software than you will save in lost sales!


这篇关于如何加密您的代码,以使人们不会对您的软件进行反向工程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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