PHP Classes
elePHPant
Icontem

PHP Ghost Face: Encrypt PHP code to generate executable scripts

Recommend this page to a friend!
  Info   View files Example   View files View files (13)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2017-09-07 (12 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 190 This week: 17All time: 8,077 This week: 29Up
Version License PHP version Categories
ghostface 1.0.1Custom (specified...5PHP 5, Cryptography, Code Generation
Description Author

This package can encrypt PHP code to generate executable scripts.

It can take a given PHP script and generate an encrypted version that will decrypt automatically when executed.

The encrypted version may execute using a license key for each user.

  Performance   Level  
Name: zinsou A.A.E.Mo´se is available for providing paid consulting. Contact zinsou A.A.E.Mo´se .
Classes: 17 packages by
Country: Benin Benin
Age: 27
All time rank: 21191 in Benin Benin
Week rank: 2 Up1 in Benin Benin Equal
Innovation award
Innovation award
Nominee: 2x

Details
This class can obfuscate PHP scripts by encrypting the code and generating an obfuscated and expirable script that when
executed will decrypt the code and execute it like the original version of the script until the license key expired.
The epiration of license key is configurable and based on PHP Expire class.The package is itself based on the innovative
class package GHOST CRYPT. The plus of this package is to obfuscate even the self decrypting code to make  it harder
for even some expert users to understand what the code does or change it. The self decrypting code works normally until
license key expire.Then the code just display the predefined message of your choice. 
 
 
The class constructor:
public function __construct($inFile = null, $outFileExt = '', $pubKey = '',$licenseKey='',$expiration="10",$message="Your serial number expire",$licenseKeyprefix="GhostFace")

	



The class contains except the constructor, 2 methods:
-private function encrypt()

which encrypt the code.

-private function decrypt()

which decrypt the code.


									
See the example.php file for example of how to use.
This script is too short to provide more 
documentation.

after encryting a code, only thing you need to put in the package with your encrypted code is the GhostHash class but also the	PHP Expire class and the
auto generated  license key  file.

how to test it://actually you don't need it because i already add myself the files that are mentionned below so all you have to do is to start your server and run one of the two files  infile.enc.php or ex.enc.php in your preferred browser to see the package in action .I don't add it before because by the past i have choosen a very little expiration time like 10 secondes for infile.php and 60 secondes for ex.php and i think that it would be better that the package downloader ran the example.php in his browser to generate the encrypted files, this way the license key must not be invalid before PHPCLASSES SITE approves the package but i were wrong.So i present my sincere apologies for not making the package easy to test...//

first you see in the package a file named example.php and two other named infile.php and ex.php ...all you need to do is first to run example.php in your browser that will generate 4 files in your package directory...infile.enc.php,ex.enc.php,licensekey.infile.php,licensekey.ex.php...then you just need to run one of the files infile.enc.php or ex.enc.php to see the package in action


Keep in mind that obfuscating the code this way slows the very long code execution...
Contact at leizmo@gmail.com
  Files folder image Files  
File Role Description
Plain text file AzDGCrypt.class.inc.php Class auxilliary class source
Accessible without login Plain text file ex.enc.php Example encrypted ex.php file
Accessible without login Plain text file ex.licenseKey.php Example licenseKey for encrypted ex.php file
Accessible without login Plain text file ex.php Aux. auxilliary example script
Accessible without login Plain text file example.php Example example script
Plain text file expire.class.php Class auxilliary class source
Plain text file GhostFace.class.php Class main class source
Plain text file GhostHash.class.php Class class source
Accessible without login Plain text file infile.enc.php Example encrypted infile.php file
Accessible without login Plain text file infile.licenseKey.php Example licenseKey for encrypted infile.php file
Accessible without login Plain text file infile.php Aux. auxilliary example script
Accessible without login Plain text file license.txt Lic. license file
Accessible without login Plain text file readme Doc. readme

Downloadghostface-2017-09-07.zip 11KB
Downloadghostface-2017-09-07.tar.gz 6KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
PHP Ghost Crypt Download .zip .tar.gz for a better understanding since the package is based on it Optional
Expire Class Download .zip .tar.gz use the Expire class to set license key expiration Required
 Version Control Unique User Downloads Download Rankings  
 0%
Total:190
This week:17
All time:8,077
This week:29Up