Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

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
Trades: 0
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
 
 
Register now for full access!
Old 04-19-2007, 08:43 AM Re: Best ways to protect source.
Skilled Talker

Posts: 94
Trades: 0
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
Please login or register to view this content. Registration is FREE
! See a live
Please login or register to view this content. Registration is FREE
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: 483
Trades: 0
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.
__________________

Please login or register to view this content. Registration is FREE
TwistMyArm is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Best ways to protect source.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.40271 seconds with 12 queries