PHP encoder/decoder

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! ;)

Advertisement

9 Responses so far »

  1. 1

    Mohamad said,

    Hi, i want to thank you for this Knowledge, it’s very helpful.
    I have a question about it, when i run it, i have an Apache error, and the script stop working, so do you know why i get this error?
    Also, i can encrypt JavaScript files and HTML files ?

    Thank you
    Regards

    • 2

      Mohamad said,

      Hi, I found the problem.
      The problem is with “open tag and close tag in php”.
      I open tag ‘ at the end of the file.

      Sorry for my bad English.

      Regards

    • 3

      cooleve said,

      Hi, thx for your comment..
      It’s great that u already found the problem n fixed it..
      I’m still learning too in here.. :)

  2. 4

    M Hasan said,

    I am getting error when load the extension and restart apache. Is it a problem, as i am using php 5.3.0

  3. 5

    cindy said,

    Hi, I just found this Monas encoder yesterday. After a couple of tries, I found that the PHP version that my project used is incompatible with the monas. I’m using PHP version 5.0.5 which in the XAMPP package one, while the monas encoder only support PHP 4.3.3-4.4.9, and PHP 5.2.x….

    The error that I got is:
    Fatal error: Call to undefined function: monas_encode() in :\DCRMS\xampp\htdocs\gui.php on line 61

    I already copied the monas_encoder.dll into the ../php/ext
    and modify the php.ini file-add extension=monas_encoder.dll
    and add gui.php into the xampp/htdocs

    but it doesn’t work…..: (

    Do you know what is the problem that causing this error? I have restart and restart the Apache…the error is still there.
    Do you have the monas encoder that compatible with PHP version 5.0.5?

    Any reply and solution will be appreciate!! Thanks^^

    • 6

      cooleve said,

      Hi!
      hmmm maybe bcoz it doesn’t support your PHP version? Could you try it again with the supported PHP versions?

      I’m sorry, but i don’t have monas encoder that compatible with PHP version 5.0.5, maybe u can ask the original creator for that..
      Sorry can’t help much :(

  4. 7

    cindy said,

    haha…nvm lah , its ok…
    Thanks for ur reply^^
    If I find the solution for this, I will post it here…..

  5. 8

    Carlos said,

    Hey there
    I am very interested in this extension, but the site was taken down.
    I have searched for two days now and cant find another place to download it. Can someone send to me or point me where i can get it?

  6. 9

    aditya said,

    hey there..
    http://ombudi.com/files/monas-v1.0-win32.rar is down
    can u reupload or create mirror ?


Comment RSS · TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.