Recently i’ve been struggling with encryption.. One day i just found out that my usuall encoder have an expire.. Well, the software actually gave me an alert when i encode my code, said that it just trial version n it will expire after some day, but since my friend (who already resign) used it back then so i just continue to use it.. (yeah, it was my fault)
Ok, so i have to find another free/cheap encoder since the last one is quite expensive to buy.. Then after some searching n tried a few of them, i finally satisfied with this one, Monas – Free PHP Encoder/Decoder.
At first, i don’t really understand what i have to do with it, about the setting and all. But once i understand, i realized that it actually really simple, easy to use, n it’s all there in the instruction!!
here is the step, for all of u that have hard time to use it..
1. You have to download it first off course..
Since i used windows, so i downloaded the “Win32 platform“
2. Look at the instruction instal.txt. Here is where i starting confused.. it says :
1. Load “monas_encoder.so” for linux or “monas_encoder.dll” for windows as PHP extensions
As i stated above, i use windows platform, so i will just explain the windows version..
I thought, “How to load it as PHP extension? What is that mean? Did i have to run it with cmd or what?” It got me confused for some time..
Fortunately, before that friend (one that i mentioned above) resign, she had told me about the php.ini. So i suspect that it suppose to be related with it. So i opened the file and search for word “extension”.
For those who do not know where the location of the php.ini file, here is what u must do. Type “http://localhost/xampp/” at your browser then choose “phpinfo()” at the side bar. You will see list on the tables. Search for “Loaded Configuration File” and that is the path to your php.ini file. And search for “extension_dir” too so u know where the extension directory is, then copy monas_encoder.dll to that path.
Open the php.ini and search for “extension“. You will find this words (wow, even the php.ini give you clear instruction) :
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
;
; If you wish to have an extension loaded automatically, use the following
; syntax:
Then u just have to scroll down a ‘lil bit more to find a list of extensions that been commented with “;”
Here is where you have to load the extension. Just add :
extension=monas_encoder.dll
I don’t know it will affect or not if you put it in random line, like in the end or start of php.ini file, but i just like to keep it organized, so i put it in the extension list section.
3.
2. Place “gui.php” on your web folder, this is a simple web frontend to encode your file, the target
directory must be already exists
3. Load “gui.php” from your webbrowser
In this step, you just have to place gui.php in your xampp/htdocs folder and run it as usual. You’re ready to do some encryption!
4.
4. Up to this step, your encoded file is need no “monas_encoder”, you’re safely to unload this extension
5. Load “monas.so” for linux or “monas.dll” for windows as PHP extensions
This the extension that transparently decoding your encoded file for execution.
Test your encoded file, it should be run without problem
I assumed that extension monas_encoder.dll used for encryption and monas.dll is used for decryption. So, if u already do the encryption, u don’t have to load monas_encoder.dll again, instead you just have to load monas.dll so the application that have been ecnrypted can be run. U just have to load it the same way as u load monas_encoder.dll. Copy the monas.dll to extension directory, and load it with a command extension=monas.dll in php.ini.
And it’s all done!! hope this can helps!