17

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?

JasonMArcher
  • 14,195
  • 22
  • 56
  • 52
riad
  • 7,144
  • 22
  • 59
  • 70

7 Answers7

20

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
Community
  • 1
  • 1
SamGoody
  • 13,758
  • 9
  • 81
  • 91
2

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

pratik
  • 983
  • 3
  • 13
  • 25
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.

Chris Morley
  • 2,426
  • 2
  • 19
  • 20
2

SourceGuardian will do what you want.

1

Why do not you use ionCube or Zend Guard?

Alexander Elgin
  • 6,796
  • 4
  • 40
  • 50
0

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

Enriqe
  • 567
  • 1
  • 6
  • 22
0

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

Ira Baxter
  • 93,541
  • 22
  • 172
  • 341