php 是否可以隐藏/编码/加密php源代码并让其他人拥有系统?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18203112/
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-25 17:08:27  来源:igfitidea点击:

Is it possible to hide/encode/encrypt php source code and let others have the system?

phpencryptionobfuscation

提问by Newbie

Is it possible to hide/encode/encrypt the php file/source code, and let others have the system installed and run on their machine?

是否可以隐藏/编码/加密php文件/源代码,并让其他人在他们的机器上安装和运行系统?

回答by Rohit Chemburkar

Yes, you can definitely hide/encode/encrypt the php source code and 'others' can install it on their machine. You could use the below tools to achieve the same.

是的,您绝对可以隐藏/编码/加密 php 源代码,“其他人”可以将其安装在他们的机器上。您可以使用以下工具来实现相同的目的。

But these 'others' can also decode/decrypt the source code using other tools and services found online. So you cannot 100% protect your code, what you can do is, make it tougher for someone to reverse engineer your code.

但是这些“其他人”也可以使用其他在线工具和服务来解码/解密源代码。所以你不能 100% 保护你的代码,你可以做的是让别人更难对你的代码进行逆向工程。

Most of these tools above support Encoding and Obfuscating.

上面这些工具中的大多数都支持编码和混淆。

  • Encoding will hide your code by encrypting it.
  • Obfuscating will make your code difficult to understand.
  • 编码将通过加密来隐藏您的代码。
  • 混淆会使您的代码难以理解。

You can choose to use both (Encoding and Obfuscating) or either one, depending on your needs.

您可以根据需要选择同时使用(编码和混淆)或其中之一。

回答by Abrixas2

There are many ways for doing that (you might want to obfuscate the source code, you can compress it, ...). Some of these methods need additional code to transform your program in an executable form (compression, for example).

有很多方法可以做到这一点(你可能想要混淆源代码,你可以压缩它,......)。其中一些方法需要额外的代码来将您的程序转换为可执行形式(例如压缩)。

But the thing all methods cannot do, is keeping the source code secret. The other party gets your binary code, which can always be transformed (reverse-engineered) into a human-readable form again, because the binary code contains all functionality information that is provided in your source code.

但是所有方法都不能做的事情是对源代码保密。另一方获取您的二进制代码,它始终可以再次转换(逆向工程)为人类可读的形式,因为二进制代码包含您的源代码中提供的所有功能信息。

回答by Sutandiono

There are commercial products such as ionCube(which I use), source guardian, and Zen Guard.

有一些商业产品,例如ionCube(我使用的)、Source GuardianZen Guard

There are also postings on the net which claim they can reverse engineer the encoded programs. How reliable they are is questionable, since I have never used them.

网上也有帖子声称他们可以对编码的程序进行逆向工程。它们的可靠性如何值得怀疑,因为我从未使用过它们。

Note that most of these solutions require an encoder to be installed on their servers. So you may want to make sure your client is comfortable with that.

请注意,大多数这些解决方案都需要在其服务器上安装编码器。因此,您可能希望确保您的客户对此感到满意。

回答by John Proestakes

You could just split the frontend and backend. The frontend is hosted on the customers server with an API that makes calls to the backend on your server. This keeps all of the proprietary code proprietary and forces users to sign up / pay for subscriptions.

您可以将前端和后端分开。前端托管在客户服务器上,使用 API 调用服务器上的后端。这使所有专有代码保持专有并强制用户注册/支付订阅费用。

回答by Rana Hyder

There are some online services for obfuscate php to hide the code from others. This is one Right Coder's Free Obfuscator Online

有一些在线服务用于混淆 php 以隐藏其他人的代码。这是一个正确的编码器的免费在线混淆器

@Glavi? is right. "Nothing is bulletproof". You can encode your source code and hide from bigger programmers, not from experts.

@格拉维?是对的。“没有什么是防弹的”。你可以对你的源代码进行编码,并向更大的程序员隐藏,而不是向专家隐藏。

回答by Akhila Prakash

https://toolki.com/en/php-decoder/

https://toolki.com/en/php-decoder/

Decode hidden PHP eval(), gzinflate(), str_rot13(), str_replace() and base64_decode()

解码隐藏的 PHP eval()、gzinflate()、str_rot13()、str_replace() 和 base64_decode()