Obfuscate PHP code [closed]

僤鯓⒐⒋嵵緔 提交于 2019-11-26 05:51:43

问题


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?

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?


回答1:


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

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

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

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

  1. Zend Guard
  2. BCompiler (PECL page)
  3. PHC



回答2:


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.




回答3:


SourceGuardian will do what you want.




回答4:


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




回答5:


Why do not you use ionCube or Zend Guard?




回答6:


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




回答7:


See our SD PHP Obfuscator for a reliable PHP obfuscation tool.



来源:https://stackoverflow.com/questions/764927/obfuscate-php-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!