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?

2
  • 6
    whenever I find software that wont run unless I give it access to stuff it shouldn't ever have access to (i.e: details about my hardware), I want to punch someone in the face (and Russian Hackers hack a bank) Commented Jan 22, 2011 at 16:38
  • possible duplicate of Code obfuscator for php? Commented Jun 8, 2011 at 10:35

7 Answers 7

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
Sign up to request clarification or add additional context in comments.

Comments

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.

Comments

2

SourceGuardian will do what you want.

Comments

2

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

Comments

1

Why do not you use ionCube or Zend Guard?

Comments

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

Comments

0

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.