Encrypt PHP code

Ive been looking for a way to encrypt my php code, in a way to prevent people from reusing it or modifying it.

I have looked at NuCoder but I cant see if it can be installed on my shared web host, is there anything else anyone has used?

It will be purchased personally, so I dont want a massive cost if possible

Thank you in advance
tonelm54Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ahmed MerghaniSoftware EngineerCommented:
Check this tool:
http://www.byterun.com/free-php-encoder.php

Open in new window

0
Dave BaldwinFixer of ProblemsCommented:
IonCube http://www.ioncube.com/ and Zend-Guard http://www.zend.com/en/products/zend-guard are the most widespread encoders that you will find pre-installed on web hosts.  I don't know what they cost.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dan CraciunIT ConsultantCommented:
The question is: why?

PHP is interpreted. Meaning your code will never be available to anyone outside your server.

Do you not trust your host? Change it. Get a VPS and you'll have full control.
No need to introduce another layer of complexity.
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

Ray PaseurCommented:
If you're distributing the code, I agree with Dave Baldwin.  If you're offering an SAAS solution I agree with Dan Cranciun.  If you're open to a more mainstream idea, why not publish the software as an Open Source project on GitHub?  That's what most of the professionals are doing these days.
0
tonelm54Author Commented:
I'm writing some code for someone, who at the end in pretty sure wont pay me, however its a good project. What I don't want is for them to take my code, not pay, then sell it on. And as its for a friend (ok not a great friend in this case) I want to cover myself from loss AGAIN
0
Ray PaseurCommented:
This is not an answer, just a thought.  Why not write the code for yourself and offer to lease a non-exclusive, non-transferable single-use license to your friend.  Then you retain the rights to the underlying software, you don't have to worry about it being taken without payment, and you have the rights to continue to distribute the software to others.  If it's a project with economic value, I would certainly want to keep the software rights and the associated income stream.
0
Dave BaldwinFixer of ProblemsCommented:
Why not let them run it from your own servers or hosting?  That way they never get access to the source.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.