混淆 PHP 代码

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/764927/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-24 23:47:06  来源:igfitidea点击:

Obfuscate PHP code

phpobfuscationsource-code-protection

提问by riad

I create software using PHP. I'm going to sell this software so I need to protect my source code so that nobody can view it. How can I protect my PHP code so that the software still functions the same?

我使用 PHP 创建软件。我要出售这个软件,所以我需要保护我的源代码,这样没有人可以看到它。我怎样才能保护我的 PHP 代码,使软件的功能仍然相同?

I also need to bind the software to a particular, authorized PC. It should not run on any other PC. How can I do that? Should I encrypt using LAN MAC address? Does anyone have any other ideas?

我还需要将软件绑定到特定的授权 PC。它不应在任何其他 PC 上运行。我怎样才能做到这一点?我应该使用 LAN MAC 地址加密吗?有没有人有其他想法?

回答by SamGoody

I put together the following list a ways back - don't know if they are all current, or how many are now free, but you should find something useful here:

我将以下列表汇总在一起 - 不知道它们是否都是最新的,或者现在有多少是免费的,但你应该在这里找到一些有用的东西:

About:

关于:

  1. Wikipedia article: PHP Accelerator
  2. Comparison of APC, Zend, xCache, & the Zend Framework
  1. 维基百科文章:PHP 加速器
  2. APC、Zend、xCache 和 Zend 框架的比较

Software:

软件:

  1. Safeyar(Best)
  2. PHP's APC(PECL page)
  3. RoadSend
  4. Turck-mmcache
  5. eAccelerator
  6. PHP-Accelerator
  7. SourceGuardian
  8. NuSphere Nu-coder
  9. Gridinsoft
  10. IonCube SA-Encoder.php
  1. Safeyar最佳
  2. PHP 的 APCPECL 页面
  3. 路送
  4. 图尔克-mmcache
  5. 电子加速器
  6. PHP-加速器
  7. 来源卫报
  8. NuSphere Nu-coder
  9. 格丁软件
  10. IonCube SA-Encoder.php

Another thread on SO that adds a few more (check it out):

SO 上的另一个线程添加了更多内容(请查看):

Can I encrypt PHP source or compile it so others can't see it? and how?

我可以加密 PHP 源代码或编译它以便其他人看不到它吗?如何?

  1. Zend Guard
  2. BCompiler(PECL page)
  3. PHC
  1. Zend 守卫
  2. BCompilerPECL 页面
  3. 初级保健

回答by Chris Morley

What you may be looking for is not cryptography per se, but rather obfuscation. If you Google for "php obfuscate", many choices show up. The first one is from Raizlabs.

您可能正在寻找的不是密码学本身,而是混淆。如果您在 Google 上搜索“php obfuscate”,则会出现许多选择。第一个来自Raizlabs

回答by Chris Morley

SourceGuardianwill do what you want.

SourceGuardian会做你想做的。

回答by pratik

Just Download http://www.phplockit.com/demo.phpits gives what you want.

只需下载http://www.phplockit.com/demo.php它就能满足您的需求。

回答by Alexander Elgin

Why do not you use ionCubeor Zend Guard?

为什么不使用ionCubeZend Guard

回答by Ira Baxter

See our SD PHP Obfuscatorfor a reliable PHP obfuscation tool.

请参阅我们的SD PHP Obfuscator以获取可靠的 PHP 混淆工具。

回答by Enriqe

Usually there is a key to every locked door...

通常每扇上锁的门都有一把钥匙...

So before using / purchasing some of the encryptors on the market, take your time and search google to check if it is not already an "easy breakable" way of encoding.

因此,在使用/购买市场上的一些加密器之前,请花点时间搜索谷歌以检查它是否还不是一种“容易破解”的编码方式。

For example: http://www.kgbiz05.com/decoders

例如:http: //www.kgbiz05.com/decoders