Ioncube Php Encoder 10

  

  • IonCube Encoder Version 10 is finally here and allows users to encode PHP 7.1 files. IonCube is the only solution which allows existing encoded files to run on future versions of PHP. With Version 10, PHP 7.1 encoded files will be able to run on PHP 7.2 without the need for re-encoding! The only requirement will be to update to a future Loader.
  • Normally there’s a fee for encoding PHP files for production code but it’s free for testing purposes. Any encoded test files will only be actively decoded via the ionCube decoder PHP extension for up to 8 hours, after which they’ll expire and won’t be decoded. But this is more than enough time to test everything is working as it should.

He ionCube Loader is a free application that runs the files encoded by the ionCube PHP Encoder, while enhancing the running speed of PHP applications. Benefits: - Enables users to run files encoded by the ionCube PHP Encoder.

  • 2Installing IonCube Loaders

IonCube Loader is an extension for PHP. With this extension, ionCube encoded files can be decoded and executed. Encoded files execute and load faster, giving better performance results for your WHMCS. IonCube Loader is one of the requirements for running WHMCS.

For Linux applications, root access to the server is required. If you do not have root access and your server does not have IonCube Loaders installed, please contact your hosting provider for assistance. If you do not know if you have IonCube Loaders installed, you can check by creating a PHPInfo page and visiting it in your web browser

For cPanel

Installing IonCube Loaders with cPanel & WHM can be done one of two ways:

1) Using EasyApache via WHM >> EasyApache, IonCube Loaders can be installed by searching 'ioncube10' under the PHP Extensions List, selecting the applicable package based on your installed PHP version, and finalizing the installation.

2) As the user `root` via SSH, you can run the below command to install IonCube Loaders:

In the example above, <version> represents the version of PHP for which you wish to install ionCube.

For Non-Control panel Servers

  1. Begin by downloading the latest loaders to your computer from http://www.ioncube.com/loaders.php
  2. Extract the contents of the archived file on your local PC to a folder of your choice.
  3. Upload the folder IONCUBE via FTP to your domain webspace
  4. Now establish an SSH connection with server using a suitable client (e.g. Putty for PC's or Terminal on Mac). This is usually done using the command: SSH rootusername@yourserver.com (you will then be asked for your password).
  5. You will need to browse to the public folder where you uploaded the IONCUBE directory (search internet for change and view directory commands in Unix).
  6. Move the ioncube folder to a permanent location by entering: mv ioncube /usr/local
  7. Next, you need to locate the php.ini file, to do this enter: locate php.ini - You should find it is in /usr/local/lib/php.ini. Now that you know the location of php.ini you need to edit it. pico /usr/local/lib/php.ini
  8. Now find where other zend extentions are in the file: ctrl + w: zend_extension
  9. Paste in your new line for ioncube loader: zend_extension = /usr/local/ioncube/ioncube_loader_lin_x.so (Replace x with your version of PHP eg. 4.4)
  10. Save the changes: ctrl + X then Y and enter
  11. Restart the web server to take effect: /etc/init.d/httpd restart

That's it! Ioncube should now be installed & working on your server. To verify the installation was successful, check the PHP Info output for your server and you should see a new section which reads:

Note
If you are still having Ioncube issues the WHMCS support team are unable to assist with this. Instead please contact Ioncube support directly.

Php

Laravel is a popular PHP framework but how do you encode a Laravel project? This post covers using the ionCube Encoder to protect a simple Laravel 5 project by encoding the Laravel controller and model files, encrypting the Laravel Blade templates.

Ioncube Php Encoder 10 Nulled

The Project

The project in this example is based from:

and is using Laravel 5.3.

The tutorial gives:

  • A MySQL table called cars with the columns “make”, “model” and “produced_on” and with one record within the table.
  • A CarController.php within app/Http/Controllers
  • A Blade template show.blade.php within resources/views/cars
  • An added route within routes/web.php

and produces the following output in a web browser.

The project code is shown below, and is also included with this guide.

show.blade.php

web.php

CarController.php

Protecting Controllers and Models (Basic Encoding)

When it comes to encoding the project files, if the CarController.php controller is encoded and no obfuscation is used, the Laravel project will work as expected.

The general form for encoding is:

ioncube_encoder [options] [source directory] -o [target directory]

For this example, the project is installed in /var/www/html/project and is encoded to /var/www/html/project_encoded. The Encoder command to do this would be:

As we want to encode just the controllers directory, the ––copy option is used to tell the Encoder to copy all PHP files rather than encode, followed by the ––encode option to encode the controllers directory. Models could be encoded using the same method.

Encrypting Blade Templates (optional)

Laravel Blade templates, despite having the file extension .blade.php, are not pure .php files, and can contain Laravel specific syntax that Laravel expects to interpret. The Blade engine reads the contents of templates, processes any Blade syntax, and produces a final PHP file. The Encoder will normally encode anything ending in .php, so a .blade.php file would be encoded in the same way as any other .php file. With the template encoded, when viewed in the web browser the application now produces:

This is because Laravel will not see any Blade syntax as the file is encoded, however there is a solution.

IoncubeEncoder

Encrypting Templates

The ionCube Encoder can also encrypt non-PHP files, and unlike encoded files, encrypted files can be decrypted back to their original contents by using an API function in the ionCube Loader. Blade templates can be protected using the encryption feature whilst still allowing them to run, provided that a small change is made to the Laravel core to decrypt when required.

Within the Laravel core the BladeCompiler.php needs to be edited so that it can decrypt ionCube encrypted files. The compiler can be found at:

vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php

Within the function compile the code needs to be changed, as seen below.

The ioncube_read_file() function decrypts the Blade template so that it can be interpreted by Laravel before being passed to the browser. The ioncube_read_file()function can only be used within an encoded file so BladeCompiler.php will need to be encoded. When successful, ioncube_read_file() will return a string with the decrypted contents. However, it will return an integer if an error occurs (see section 6.5 of the user guide for error codes.)

The ––encrypt option can be used to specify files or directories to encrypt, so encrypting the templates can be done using the command:

ioncube_encoder –encrypt ‘*.blade.php’ [source directory] -o [target directory]

Ioncube Php Encoder 10 Download

Specific to this example it would be:

Note that the ––replace option is also used, and tells the Encoder to replace the already existing output from the first encoding.

More information about the ioncube_read_file() function can be found in section 6.4.1 of the user guide.

Conclusion

Ioncube Php Encoder 10 Crack

To conclude, you can encode a Laravel project, however simply encoding the whole of your Laravel project won’t allow the project to run as desired. The Laravel core is opensource so doesn’t need to be encoded. To encode a project, follow the simple steps below.

Encoding the project

  • Encode the controllers and models
  • Encrypt the Blade templates
  • Edit the BladeCompiler.php to decrypt ionCube encrypted files
  • Encode BladeCompiler.php

Ioncube Php Encoder 10.2.2 Evaluation

To include obfuscation within your project: ionCube Encoding a Laravel Project: Function Obfuscation

ionCube Encoding a Laravel Project: Controllers, Models and Templates