Skip to content

Obfuscate and protect your PHP source code with a multi-layered encoding tool — secure your scripts from being edited, copied, or reverse engineered.

License

Notifications You must be signed in to change notification settings

caferkara/PHP-Advanced-Obfuscator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PHP Advanced Obfuscator 🔐

A secure and lightweight PHP source code obfuscator designed to protect your scripts from being read, copied, or modified. It transforms your PHP code into a highly obfuscated version that is difficult to understand or reverse engineer — while remaining fully functional.


🚀 Features

  • 🔒 Multi-layered Obfuscation: Uses str_rot13, gzdeflate, and base64_encode to secure your code.
  • 📁 Upload Interface: Easily upload any .php file through a simple web form.
  • ⚙️ Automated Encoding: Instantly generates a new obfuscated version of your original file.
  • Executable Output: The output is still a valid and working PHP file.
  • 🖥️ Beginner-Friendly UI: Includes a clean and simple web interface for quick use.

📂 File Structure

php-advanced-obfuscator/ ├── core/ │ └── Obfuscator.php → Main class that handles encoding logic ├── public/ │ ├── index.php → Upload form │ ├── encode.php → Handles file upload and encoding │ ├── assets/style.css → Basic styling │ ├── uploads/ → Temporary uploaded files │ └── output/ → Obfuscated output files └── README.md

🛠 How It Works

  1. Upload a PHP file via the form (index.php).
  2. The script reads the content and passes it through multiple obfuscation layers:
    • First str_rot13
    • Then gzdeflate compression
    • Finally base64_encode with another str_rot13
  3. The result is wrapped in an eval() statement and written to a new .php file.
  4. You can download the encoded version from the provided link.

📦 Usage

  1. Clone or download this repository:

    git clone https://github.com/caferkara/php-advanced-obfuscator.git
  2. Place the project on a PHP-supported server (e.g., XAMPP, WAMP, or live server).

  3. Open the browser and go to:

    http://localhost/php-advanced-obfuscator/public/
    
  4. Upload your PHP file and download the encoded result.

⚠️ Disclaimer

This tool is intended for educational and protection purposes only. It does not provide foolproof encryption and should not be used for hiding malicious code or violating any terms of service.

📃 License

This project is open-source under the MIT License.

About

Obfuscate and protect your PHP source code with a multi-layered encoding tool — secure your scripts from being edited, copied, or reverse engineered.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published