Link to home
Start Free TrialLog in
Avatar of tonelm54
tonelm54

asked on

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
SOLUTION
Avatar of Ahmed Merghani
Ahmed Merghani
Flag of Sudan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
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.
Avatar of tonelm54
tonelm54

ASKER

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
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.
Why not let them run it from your own servers or hosting?  That way they never get access to the source.