Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to encrypt a PHP file for free? [closed]

I have created a plugin for WordPress although I would like to encrypt it to stop people viewing the source code. I've heard of Zend Guard and IonCube although is there a free alternative to these? Thanks for the help. :)

like image 218
Joey Morani Avatar asked Jul 24 '11 20:07

Joey Morani


People also ask

How can I protect my PHP source code for free?

The only way to really protect your php-applications from other, is to not share the source code. If you post you code somewhere online, or send it to you customers by some medium, other people than you have access to the code. You could add an unique watermark to every single copy of your code.

Can you encrypt a PHP file?

Yes, you can definitely hide/encode/encrypt the php source code and 'others' can install it on their machine.

How do I obfuscate PHP code?

With PHP Obfuscator, no complete illegibility of the source code can be achieved, since the PHP server must be still able to process the script - even without additional software installed on the server. For proper processing of the script, the full source code or the entire file (including HTML tags) should be pasted.


2 Answers

Try this one: PHP Encoder

This might be the answer you are looking for.

like image 145
MyXEDNotes Avatar answered Sep 29 '22 06:09

MyXEDNotes


Looks like the things you choose are not working this way:

  • Wordpress is open source
  • PHP is not compiled
  • any obfuscation can be decoded

If you don't want to share the source, provide the code as a service. You may require the user to enter API key etc.


  • Execute the code on your server and send response (e.g. JSON or XML) to the Wordpress part.
  • Allow only the users who paid for the service to access the service on your server
  • Authenticate the users by selling and then checking the API key

See: SaaS

like image 33
takeshin Avatar answered Sep 29 '22 04:09

takeshin