PHP MasterCrypt - phpMC

PHP MasterCrypt - phpMC can encrypt any chuck of PHP code onto a complex unreadable PHP code. It is useful to protect your sensitive data like username/password or your whole PHP script. It virtually makes impossible to decrypt those encrypted codes. It basically obfuscates and encrypts the PHP code using a very complex algorithm and that code cannot be edited or changed by anyone.

All of us know that PHP is a scripting language, and it is not stored in a compiled form on the server. So any one who has access to your PHP script(server side) can easily steal your valuable codes in it. This problem becomes more prominent when you are a PHP developer or programmer and you need to distribute your script on the net or to your clients.

So, the solution is PHP MasterCrypt. The encrypted code by phpMC makes it impossible to edit/view/change your script by anyone, even if someone has the full access to your script. You can safely distribute the encrypted script on the net or to anyone. The encoded script is completely secure and may contain sensitive data like username and password. The encrypted code by phpMC is compatible with any environment having PHP4.0+ and it is completely standalone, so it don’t need anything extra to be installed/modified or present on the server where it will execute.

Key Feature

  • Can Encrypt any PHP scripts. It may even contain HTML,Javascript,CSS etc.
  • Runs on any environment having PHP 4 or above.
  • Offers two types of encryption and encoding method which can be used together for better security.
  • Allows optionally set expiry date for encoded script. So, can create trial version of the script
  • Allows optionally set Username/Password for your script. Which will require login information each time it will execute.
  • Allows optionally set domain locking. The script can be set to work with specific domain only.
  • Allows optionally set IP range locking. The script can be set to block/allow a certain IP range only.
  • Custom error message can be set for expiy, IP locking and domain locking.
  • The level of security can be set by the user.
  • Requires no extra installation/modification or addition of separate files on your server to execute.
  • Can encrypt a portion of a script or any include file. No changes are needed in rest of the file or any other files which are related to that code. The variable names and function names will remain unchanged in encrypted code.


  • PHP version 4.0 or above.
  • PHP short tags enabled, this is enabled in most servers by default.

Change log for Major Releases
2.x.x   February 17, 2008

  • Added feature to set expiry by date. Expiry can be set by date or by no of days.
  • Added feature to set custom message to show on expiry.
  • Added feature to lock the encrypted script by IP address of user. IP range can be specified, for which the script will be allowed to work or the script will be blocked to use. Along with that custom message can also be set on disallow.
  • Added feature to lock the script to work under a fixed domain only, option to allow subdomains is added. Custom message can also be set on disallow.
  • Updated few settings.
  • Fixed some minor bugs.