Jump to content
  • Advertisement
Sign in to follow this  
streamer

[web] PHP encoder

This topic is 3501 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi I want to encode PHP files, making files unreadable. Which PHP encoder is the best buy considering options/price? thanks in advance

Share this post


Link to post
Share on other sites
Advertisement
The term you're looking for is an "obfuscator." Here are some Google results for you.

However, it's pretty uncommon to have to obfuscate server-side code. Are you delivering your PHP code to a client that you don't want to be able to read the source code?

Share this post


Link to post
Share on other sites
Quote:
Original post by BeanDog
The term you're looking for is an "obfuscator." Here are some Google results for you.

However, it's pretty uncommon to have to obfuscate server-side code. Are you delivering your PHP code to a client that you don't want to be able to read the source code?


No, I'm familiar with obfuscator term, and maybe I did wrote the bad word. I need encrypter, that will be totally unreadable and impossible to reverse the whole code to normal. Obfuscators are however hard to read but not impossible to revers engineer.

Also it is a plus if it can handle javascripts too...

Share this post


Link to post
Share on other sites
Quote:
Original post by streamer
Quote:
Original post by BeanDog
The term you're looking for is an "obfuscator." Here are some Google results for you.

However, it's pretty uncommon to have to obfuscate server-side code. Are you delivering your PHP code to a client that you don't want to be able to read the source code?


No, I'm familiar with obfuscator term, and maybe I did wrote the bad word. I need encrypter, that will be totally unreadable and impossible to reverse the whole code to normal. Obfuscators are however hard to read but not impossible to revers engineer.

Also it is a plus if it can handle javascripts too...
As far as I'm aware it's impossible to do that. PHP needs to be able to run the code, and as such you can always just reverse-process it.

Why do you need to do this anyway?

Share this post


Link to post
Share on other sites
The main problem is that our company is delivering complete servers with code for a good money. Nowadays it is pretty easy to clone a complete hard disks and make another server of it, and we don't want to something like that happen. Many people can access the hard disks, and complete machine also. There is slight possibility that some other users can access and change php code too. That's why I need some very GOOD protection to protect code we have written.
In this case if I can encode/encrypt a complete code, some piece if code in PHP can be wrote to bind code to that particular server via ip.

But if there is any other option of doing the same thing, I am open for any advice you guys can think off.

thanks

Share this post


Link to post
Share on other sites
Quote:
Original post by Evil Steve
Quote:
Original post by streamer
Quote:
Original post by BeanDog
The term you're looking for is an "obfuscator." Here are some Google results for you.

However, it's pretty uncommon to have to obfuscate server-side code. Are you delivering your PHP code to a client that you don't want to be able to read the source code?


No, I'm familiar with obfuscator term, and maybe I did wrote the bad word. I need encrypter, that will be totally unreadable and impossible to reverse the whole code to normal. Obfuscators are however hard to read but not impossible to revers engineer.

Also it is a plus if it can handle javascripts too...
As far as I'm aware it's impossible to do that. PHP needs to be able to run the code, and as such you can always just reverse-process it.

Why do you need to do this anyway?


You're wrong there is one encrypter I am aware of. It is PHP source guardian. It is made as PHP extension, and it fully encrypts the php code. But I would like to know if there is any other piece of software that can do better. Source Guardian cannot handle for example javascripts.

Share this post


Link to post
Share on other sites
Quote:
Original post by streamer
You're wrong there is one encrypter I am aware of. It is PHP source guardian. It is made as PHP extension, and it fully encrypts the php code. But I would like to know if there is any other piece of software that can do better. Source Guardian cannot handle for example javascripts.
Actually, he's right. PHP source guardian can decrypt your PHP source, therefore it is possible for your source code to be decrypted. You can't have PHP code which is impossible to read, otherwise you can't execute that code.

An alternative would be to convert the PHP source to some other programming language, which would mean that the end result is perfectly readable and executable, but it cannot be reverse-transformed into PHP code. Sadly, because of the dynamic and reflexive nature of PHP, this is next to impossible.

Share this post


Link to post
Share on other sites
Bad news [sad]. So there is no chance to protect somehow the code? I just don't want people to edit or list the code.

Share this post


Link to post
Share on other sites
Quote:
Original post by Konfusius
Does this help you? http://www.zend.com/en/products/guard/


Thanks I will download it and take a look at it.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!