PHP Classes

PHP-Obfuscator: Obfuscate PHP scripts by removing comments

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 42%Total: 1,197 This week: 1All time: 3,163 This week: 571Up
Version License PHP version Categories
php-obfuscator 1.5Free for non-comm...4.3Tools, Code Generation
Description 

Author

This class can be used to obfuscate PHP scripts by removing comments.

It uses the tokenizer extension to parse the PHP scripts.

The class removes the comments from the script tokens list and generates the obfuscated version of the script.

It can also generate alternative versions of the script that uncompress and decode the code using the base64 algorithm.

Picture of Anish Karim C
  Performance   Level  
Name: Anish Karim C <contact>
Classes: 5 packages by
Country: India India
Age: 42
All time rank: 81546 in India India
Week rank: 420 Up26 in India India Up

Details

/**Developer: Anish Karim C*[thecoderin@gmail.com]***** * * * ***FileFor: PHPCodeObfuscator[CLASS FILE]*************** * * * ***CreatedOn: 17th December 2009***************************** * * * ***Modified On: 25th April 2010 ******************************** * * * C * * * *************************************************************** * * * ***Details: CLASS is the core that make things work*********** * * * ***Suggestions and Comments are welcome****************** * * * */ //////////////////////////////////////////////////////VERSION DETAILS/////////////////////////////////////////////////////////////////////////// // Version Date Modified Changes Remarks //// //------------------------------------------------------------------------------------------------------------------------------------------//// // 0.11b 17th December 09 Created Initial Development. //// // 0.20b 25th April 10 Made Strong earlier obfhard to obfnorm //// // obfhard replaced with an recursive fn _obfhard //// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// This package is a good tool for Obfuscating[cutting short and encode] your PHP scripts completely. PACKAGE FILE LISTING ********************* 1. index.html HTML FILE simple example how to run Obfuscation Class. 2. encoder.class.inc PHP Class File The core code in OOPS Class. Coded in PHP 3. backend.php PHP FILE PHP Backend for index.html, to manage the file. This package having an option for uploading a PHP file, and it will work with the content according to the mode, and outputs the file after desired operation is done. It is using base64 function and deflate compression functions for obfuscation. This package has three functioning modes. 1. uncomment, when we set the mode as uncomment, it will read the complete file and remove all kinds of PHP comments in it and output the script without any comment. 2. obfnorm, This is the basic obfuscation form. It removes the comments first and went through base64 encoding and deflate compression mechanism before giving the result as PHP script file. 3. obfhard, This is bit complex obfuscation system. It automatically choses a random number and recursively call obfnorm to generate hard to regenerate obfuscated code. IMPORTANT NOTICE ---------------- Obfuscated code is not human readable but it can read by the PHP interpreter without any additional info. This function can also used for encoding, but a brilliant coder can somehow able to know what are the original code. NOTICE --------- It only accepts pure php codes, if your PHP script embed with html tags please do not try to obfuscate. It will not give a workable solution. If you got stuck, or want to ask some doubts feel free to send an email to me: thecoderin at gmail dot com Enjoy... Anish Karim C. developer (c) Designed and Developed By: Anish karim C. Free for Use and Edit. But do remember me. Visit My blogs : thecoderinc.blogspot.com : ubutrix.blogspot.com

  Files folder image Files  
File Role Description
Accessible without login Plain text file backend.php Example backend PHP Script
Accessible without login HTML file index.html Example Example Page 1
Plain text file encoder.class.inc Class Main Class
Accessible without login Plain text file README.txt Doc. ReadMe File

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,197
This week:1
All time:3,163
This week:571Up
 User Ratings  
 
 All time
Utility:56%StarStarStar
Consistency:43%StarStarStar
Documentation:50%StarStarStar
Examples:50%StarStarStar
Tests:-
Videos:-
Overall:42%StarStarStar
Rank:3568