PHP Classes
elePHPant
Icontem

PHP-Obfuscator: Obfuscate PHP scripts by removing comments

Recommend this page to a friend!

  Author Author  
Name: Anish Karim C <contact>
Classes: 5 packages by
Country: India India
Age: 35
All time rank: 82547 in India India
Week rank: 548 Up45 in India India Up


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
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.

Details
{startverticalbanner}
/**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

  Classes of Anish Karim C  >  PHP-Obfuscator  >  Download Download .zip .tar.gz  >  Support forum Support forum (2)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: PHP-Obfuscator
Base name: php-obfuscator
Description: Obfuscate PHP scripts by removing comments
Version: 1.5
PHP version: 4.3
License: Free for non-commercial use
All time users: 1148 users
All time rank: 3188
Week users: 1 user
Week rank: 689 Up
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image Utilities and Tools General purpose tools to simplify software development View top rated classes
Group folder image Code Generation Compilers and tools that generate code automatically View top rated classes


  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Not sure (58%) Not sure (41%) Not sure (50%) Not sure (50%) - - Not sure (43%) 2635
Month: Not yet rated by the users

  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  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

Install with Composer Install with Composer - Download Download all files: php-obfuscator.tar.gz php-obfuscator.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.