PHP source code encryption

Ben_D0ver

Well-Known Member
Joined
Feb 13, 2010
Messages
142
Reaction score
0
Excuse me for asking. I did a few searches on the interwebs and wasnt able to find anything off the bat.

Mate of mine is wanting to encrypt his php code and asked if I knew of something, and I replied that I do recall a product which did such a thing but cannot find what I was hoping to remember.

Any suggestions would be greatly appreciated.
 
Ioncube or Zend Guard

There's more, but those are the popular ones that should be supported almost everywhere.
 
Don't really know how to use google hey.... I found it on my first shot ;)

Those aren't foolproof though, can be reversed engineered. Ioncube is the cheaper of the 2
 
isp-insider:
Why does he want to "encrypt" it? Obfuscation is usually enough if you just don't want people to see your source code when they do have read access to it. They can still reverse engineer it if they really want to...
 
They can reverse engineer pretty much anything. Encryption is usually used (or that's in my case) when I want to deliver a demo to a client that hasn't paid for it yet. I usually put a dead-switch in there too
 
Ioncube or Zend Guard

There's more, but those are the popular ones that should be supported almost everywhere.
Zend guard was the one I was looking for, thanks dude

Don't really know how to use google hey.... I found it on my first shot ;)

Those aren't foolproof though, can be reversed engineered. Ioncube is the cheaper of the 2
I was in a rush and slightly intoxicated :) Happens to the best of us at times.

They can reverse engineer pretty much anything. Encryption is usually used (or that's in my case) when I want to deliver a demo to a client that hasn't paid for it yet. I usually put a dead-switch in there too
Do elaborate
 
Nice! So where to from here if encoded / encrypted files can simply be decrypted to reveal their source?

Make sure to get paid for your services and don't worry about encryption?

It really depends on the WHY here.
 
AFAIK to prevent a competitor from having access to code.

Well it's inevitable that a company might look (especially if they outsource) to another company to take over code and maintenance. That you can't prevent. What you can do is deliver a great service with a great framework/code-base (which is usually difficult to adopt, especially if the rival is a ****ing idiot, which they usually are if they win the contract in an under-bid to get the business)

Other than that I don't really care and you can't really stop them from choosing someone else. If they paid you for the code, then the code is theirs to do with whatever they want.

If it's a licensing issue, ie, they didn't pay him to develop the code, but he licenses it to them on a monthly/yearly basis, then a combination of obfuscation and zend encryption might be enough to protect himself from anyone who might have access to the client servers etc.

Otherwise, being a web app, I'd make it so that the application is hosted on my server with a "white label" ability whereby many clients can use the same web app that looks like their company owns it and then you're in total control of where the code goes to and who has access to it.

However, again, you can't really stop anyone from choosing a different service provider, regardless. So best your friend concentrates on delivering a great service (note, not product, service) and make himself invaluable that way, and just come to terms with it that, if they paid him for the source, it's unencrypted source and it belongs to them and if they want to choose someone else, they can.

It's like trying to force your girlfriend to stay with you when they're busy flirting/wanting with someone else and fallen out of love with you. Encrypting her won't stop her from going elsewhere :p
 
It's like trying to force your girlfriend to stay with you when they're busy flirting/wanting with someone else and fallen out of love with you. Encrypting her won't stop her from going elsewhere :p

To stay with the analogy, service her well enough and she wont want to go anywhere else!
 
To stay with the analogy, service her well enough and she wont want to go anywhere else!
I have no plans on serving any of the OKES working on the project :)

Ok, managed to find an online resource that offers the same features as those commercial products and out of the three that we tested this one seemed to do the job.


Whos willing to give the code a bash and decrypt? If you are then pm me and we can get in touch via email.
 
Top
Sign up to the MyBroadband newsletter
X