Version Date Notes By
0.3 2019-03-11 Exclude blade files FPA
0.2 2019-02-15 Fix server IP JFM
0.1 2019-01-22 Initial release JFM

Introduction

We currently use Ioncube to encrypt files.

For PHP to be able the read the encrypted files we need to install the Ioncube Loader.

Ioncube Loader is an extension available for free. Got to the Download Page and download the version corresponding to the PHP version installed on the server.

IonCube is installed on the 192.168.10.34 server

What do we Encrypt

Currently, we encrypt every Module (SGI) inside the vendor/wemake/ folder and the app folder.

How to Encrypt

  1. On the IonCube server create a folder for the project inside the folder /home/devel/encryption

  2. Copy the folders to encrypt to the newly created project folder

  3. cd do the project folder

  4. Now we need to create a licence file using the make_license command

make_license --passphrase <passphrase> --property 'licences=<number_of_licences>' --expose-property licences -o licence.lic

This file will be used to encrypt the files.

  1. Now encrypt the files using the ioncube_encoder.sh command. Note that all files matching *.blade.php are excluded from being encoded.

ioncube_encoder.sh --with-license licence.lic --passphrase <passphrase> --copy "*.blade.php" <folder_to_encript> -o <destination_folder>

  1. Copy the licence.lic to the root of the backend and replaces the app folder and modules