问题
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:
- Wikipedia article: PHP Accelerator
- Comparison of APC, Zend, xCache, & the Zend Framework
Software:
- Safeyar (Best)
- PHP's APC (PECL page)
- RoadSend
- Turck-mmcache
- eAccelerator
- PHP-Accelerator
- SourceGuardian
- NuSphere Nu-coder
- Gridinsoft
- 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?
- Zend Guard
- BCompiler (PECL page)
- 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