FRICC2 is a PHP Script encryption tool. When you are developing a commercial software using PHP, the script can be distributed as encrypted up until just before execution. Thanks for PHP-Screw.
- Less file handle open or read.
- Compress supported, small size of target files.
- Fix serval memory Leak.
- More performance when php open files.
- Supported Bundle in PHP with static.
- Tested on Ubuntu / CentOS / Openwrt.
- Tested in x86_64 / MIPS / ARM Processors.
- Supported PHP 8(include JIT), Tested Memory Leak.
- Supported Sandbox Mode(uncomment in fricc2_lib.h to enable it), only encrypted source can be run.
PHP Version | Status | Notice |
---|---|---|
PHP 8.1.X | Static / Shared | Recommend, Tested on 8.1.10, FRICC2 2.0.1 |
PHP 8.0.X | Static / Shared | Recommend, Tested on 8.0.23, FRICC2 2.0.1 |
PHP 7.4.X | Static / Shared | Recommend |
PHP 7.0.X / 7.3.X | Static / Shared | Runtime Little Memory Leak (auto free when php exit) |
Other Version | NO TEST | NO TEST |
PHP must be compiled with the "--with-zlib" option.
# git clone source
cd ~/
git clone https://github.com/hoowa/FRICC2.git
# optional init key (Set Better Secure different)
chmod +x ~/FRICC2/fricc2load/init_key
~/FRICC2/fricc2load/init_key
# optional enable sandbox mode to edit fricc2_lib.h
# uncomment FRICCSANDBOX_ENABLE
# Requirement Example CentOS 7.9
yum groupinstall "Development Tools"
yum install zlib-static zlib-devel
# Requirement Example Ubuntu 20.04
sudo apt install build-essential pkg-config autoconf zlib1g-dev
# Compile fricc2load
cd ~/FRICC2/fricc2load/
phpize
./configure
make
make install
# Append this line to php.ini
extension=fricc2load.so
# Test in CLI
php -m|grep fricc2load
# Restart the web server / your php daemon as you need
# Compile Encode Program
cd ~/FRICC2/fricc2/
make
cp fricc2 /usr/bin/
# Test Create test.php
<?php
echo "hello fricc2\n";
?>
fricc2 -o test_new.php test.php
php ./test_new.php
# Screen output:
hello fricc2
# example of your php source in ~/php-7.4.22/
cd ~/php-7.4.22
cp -avf ~/FRICC2/fricc2load/ ./ext/
./buildconf --force
# append --enable-fricc2load=static --with-zlib to configure (example):
./configure --enable-fricc2load=static --with-zlib
make
make install
# check modules
php -m|grep fricc2load
Sun Bing hoowa.sun@gmail.com