Reply
Best ways to protect source.
Old 04-19-2007, 05:47 AM Best ways to protect source.
OTO
OTO's Avatar
Experienced Talker

Posts: 44
Location: Tbilisi, Georgia
Hi guys

First of all sorry for my English

I think securing PHP source code becomes more and more popular daily. lets list the best ways for protecting it.

There are many shareware and open source encryption things, but they are not secure. Good programmer can easily decrypt them.

There are two more ways: Zend Guard and IonCube Encoder, but they both need loaders to be installed on the server. This is a big problem, because there are vast number of web hosting, but too few of them have this loaders installed on servers.

So if you know some ways (Secure and no-loader-needed-to-be-installed-on-server), write them here, this problem is actual for many developers
OTO is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 04-19-2007, 08:43 AM Re: Best ways to protect source.
Skilled Talker

Posts: 94
Quote:
Originally Posted by OTO View Post
There are two more ways: Zend Guard and IonCube Encoder, but they both need loaders to be installed on the server. This is a big problem, because there are vast number of web hosting, but too few of them have this loaders installed on servers.
Any good host is going to have Zend optimizer and IonCube can be installed on the local web directory so anyone can install it. So I would go with one or the other.
__________________
Sell Templates? Try our Template Monster WebAPI absolutely free! See a live Template Shop Demo
ChadR is offline
Reply With Quote
View Public Profile
 
Old 04-19-2007, 09:08 AM Re: Best ways to protect source.
Ultra Talker

Posts: 479
I hate getting in to the conversations, mainly because everyone who has an opinion is so pig headed, plus I am biased as I write an obfuscator

Having said all that, here's my thoughts: to unobfuscate obfuscated code you need someone to actually step through the code, determine what each variable does and name them appropriately. Because the obfuscated code is entirely valid PHP, it runs perfectly without any loaders. But like I say, if you want to know what it actually does, you have to go to a fair amount of effort to work it out as the variable names, function names, constant names etc. are all meaningless.

Encrypted PHP code (the stuff that requires a loader) gets loaded into memory and decrypted in memory. Once it's decrypted in memory, it's the same code as what the developer worked with. All you need to do is do a memory dump of where the code was decrypted to and you have the original code. That is why there are now some encrypters out there that will obfuscate the code first.

Releases of bytecode are not 'real, developer usable' PHP at all. I consider them, really, to be closer to obfuscated code as it's not encrypted... it's just 'changed'. Unfortunately, it still requires a loader of some sort.

So: if I weren't happy with just obfuscation, I'd go the obufscation + encryption route as a two layer system. I don't think obfuscation + bytecode release adds much more protection than either of the two separately.

They're my thoughts, anyway.
__________________
Free PHP Obfuscator
TwistMyArm is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Best ways to protect source.
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12527 seconds with 13 queries