Can I encrypt PHP source or compile it so others can't see it? and how? [duplicate]
Asked Answered
C

7

5

I need to encrypt some PHP source that I've released to the public.

Is this possible? Can PHP be "compiled" ?

Cog answered 22/1, 2009 at 19:6 Comment(0)
S
3

You can buy Zend Guard to encode your PHP sources, and then use the Zend Optimizer to run it. There is an opensource/free PHP compiler project as well (bcompiler, and also take a look to this) but I never used it because at the time I needed it the project was still incomplete.

Stationmaster answered 22/1, 2009 at 19:23 Comment(0)
O
3

You can have a look at phc which can generate executables from PHP. It also has some other options to create C-code, XML, optimized PHP, etc. from the original PHP source.

Oistrakh answered 22/1, 2009 at 19:18 Comment(0)
S
3

You can buy Zend Guard to encode your PHP sources, and then use the Zend Optimizer to run it. There is an opensource/free PHP compiler project as well (bcompiler, and also take a look to this) but I never used it because at the time I needed it the project was still incomplete.

Stationmaster answered 22/1, 2009 at 19:23 Comment(0)
R
2

since they need to run on a wide range of boxes, some of which don't have access to install things like Zend Optimizer and PHP Express Loader

If you need your code to be able to run on a standard version of PHP without any modules then the answer is NO. There is no method of compilation that is going to work on the wide variety of different PHP installations.

Rakes answered 22/1, 2009 at 20:20 Comment(0)
B
1

Nusphere (the makers of PhpED) have a product called Nu-coder for doing exactly this. Although not free, it will do what you want.

Boiled answered 22/1, 2009 at 19:20 Comment(1)
I've tried Nu-Coder and the other above options, but these don't seem to be any good at this time since they need to run on a wide range of boxes, some of which don't have access to install things like Zend Optimizer and PHP Express LoaderCog
E
1

the problem with ioncube and zend --

They BOTH are crackable and there are applications out there for around 500.00 bucks that will allow you to steal the code.

They BOTH need loaders to run - why you ask is this a problem? IF this project is to be sold to the public then you will without fail get a ton of tech support questions about ioncube and I don't need to tell you what it's like supporting someone else's code / software.

I've found in this case neither one is a good choice.

Electuary answered 1/5, 2012 at 14:50 Comment(0)
P
0

I would say try ionCube also - they're one of the longest established and successful creators of PHP Encoding software. We use them for our Web development projects and while the need to install a "Loader" is a bit of a downside, they now provide the Loader Wizard script which we bundle to users and it gives them step by step instructions.

Also, I've always found their support to be more than helpful :)

Percolator answered 11/12, 2012 at 15:30 Comment(0)
P
-4

There is some of software available to encrypt PHP sources to protect intellectual property. I do not know any free ones, though. Just google something like "php encrypt source" if you're ok with paying/shareware.

Playwriting answered 22/1, 2009 at 19:19 Comment(1)
this is a advice not a solutionKremlin

© 2022 - 2024 — McMap. All rights reserved.