Encrypt php code using Script Maze class
PHP is scripting language so the source code still readable for user who has access to the files. If someone has already own the source they can modify the source. To minimize the risk about someone modify the script we can encrypt the php code.
There are two type encrypting php code. The first is one way encrypting, This way only can encrypt the php code irreversible and can not open the original source. for example using eAccelerator
The second is two way encryptng. This encrypt mode can open the original source code with providing key / password. For example using Solace Script Maze.
This tutorial will describe how to use Solace Script Maze. This class made by Zilav.
With this class we can :
1. Encrypt php script
2. Limit expiration time / date.
3. Limit CLient / Server IP
Step by Step tutorial:
1. Download Solace Script Maze Here
2. Extract to your htdocs directory
scriptmaze
│ index.htm
│ index.php
│ phpmaze.php
│ phpmorph.php
│ sftemplate.php
│ ssm.txt
│
└───encodelib
key_word.php
table_reorder.php
table_shift_2.php
table_shuffle.php
_bottom.php
_bottom_turck.php
_top.php
_top_compress.php
_top_turck.php
3. Open scriptmaze directory with your browser.
To encrypt php script the php code can directly type in the form or upload the php file.
Type in Master Password form to decrypt the encrypted files.
Check the Enable expiration time if you want to Script will work only before desired date.
Fill the Client or Server IP where mazed scripts will work only for specified clients or on specified servers.
Check Enable Turck MMCache Encoding if encode scripts with Turck MMCache.
After click the Maze button, if success we can obtain mazed download dialog.
Try to open the files using php editor, it shows mazed scripts.
Try to save mazed script into htdocs folder and call from web browser.
http://localhost/scriptmaze/mazed.php Hello, world!
To decode the scrypt
http://localhost/scriptmaze/mazed.php?unmaze=thepassword
To measure decoding time
http://localhost/scriptmaze/mazed.php?unmazetest
The Live version of Solace Script Maze can be accessed here











Post new comment