View Full Version : PHP Encript PHP source code
dharmsays
May 13th, 2009, 04:32 AM
hello friends,
is there any free tool to encript php pages so after deploying project no one can change it.
utsav
May 13th, 2009, 09:55 AM
Dont think so.....
Or may be you could Hex all your files and call it in some other php file.
Dont think this is a solution though.
Anybody knows???? Help out. I would take tht too.
Charleh
May 13th, 2009, 11:10 AM
Can you explain the scenario a bit more? Surely if you don't want anyone to change your PHP scripts you put them in a secure place on the server that only people with the correct privelages can access.
ramie
May 13th, 2009, 12:17 PM
^ this is a problem for deployed and licensed software in php, I've seen it implemented with lots of e-com tools.
Zend Guard is a very robust solution for this. http://www.zend.com/en/products/guard/
NeoDreamer
May 13th, 2009, 07:27 PM
What do you guys mean by putting PHP files in a secure place? Whenever someone tries to access a PHP file, text gets outputted. You never see the source.
Charleh
May 15th, 2009, 05:24 AM
I guess if you are distributing PHP source for other people to use, and you want the code to remain a secret (you want your intellectual property protected) then sending the raw PHP files is a bad idea. You don't even need to decompile a PHP file, as it's pure text, so all your hard work can be stolen and re-engineered by anyone who downloads it.
For a standard website, this isn't much of an issue as the only person who can access the source will be the web designer or developer, but for distributed licenced apps this is a problem.
actionAction
May 19th, 2009, 12:44 PM
You can't encrypt php code and distribute it and expect that it won't be cracked with relative ease. You would have to either include the encryption key in the source code or have the code make a call to a remote server to receive the key, which could easily be changed to echo out the remotely stored key instead. Obfuscation would be the best you could hope for with this approach, and should never be the only security measure when trying to protect your source code (though it doesn't hurt to use it in addition to something more hardened).
You should look into php bytecode compilers, there are numerous proprietary bytecode compilers like the one ramie mentioned (which is expensive, but good). You can also try bcompiler which is free from php (http://pecl.php.net/package/bcompiler).
djheru
May 22nd, 2009, 12:58 AM
The most popular ones are Ioncube and zend . Zend can be cracked pretty easily.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.