PHP Classes

PHP Ghost Face: Encrypt PHP code to generate executable scripts

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 282 All time: 7,595 This week: 67Up
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.

Picture of zinsou A.A.E.Moïse
  Performance   Level  
Name: zinsou A.A.E.Moïse is available for providing paid consulting. Contact zinsou A.A.E.Moïse .
Classes: 50 packages by
Country: Benin Benin
Age: 34
All time rank: 6761 in Benin Benin
Week rank: 215 Up1 in Benin Benin Equal
Innovation award
Innovation award
Nominee: 23x

Winner: 2x

Recommendations

Example

<?php

require_once 'GhostFace.class.php';
$gcrypt = new GhostFace("infile.php", ".enc.php");
// $gcrypt = new GhostFace("infile.php", ".enc.php");
$gcrypt = new GhostFace("ex.php", ".enc.php", "","",60,"Your license key expired,Please Contact master GhostFace to require a new license key","GhostPEPPER");


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 (13)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
Downloadghostface-2017-09-07.zip 11KB
Downloadghostface-2017-09-07.tar.gz 7KB
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:282
This week:0
All time:7,595
This week:67Up
User Comments (1)
Could not do anything with it.
6 years ago (Alekos Psimikakis)
10%Star