PHP Classes

File: obfuscator.php

Recommend this page to a friend!
  Classes of Rafael Espinosa  >  PHP Obfuscate  >  obfuscator.php  >  Download  
File: obfuscator.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Obfuscate
Obfuscate PHP encrypting the source code
Author: By
Last change:
Date: 7 years ago
Size: 693 bytes


Class file image Download
header('Location: index.php');

__DIR__ . DIRECTORY_SEPARATOR . "vendor/autoload.php");

$obfuscator = new \Fluency\Component\Obfuscator\PhpObfuscator();
$cleanFileName = md5(uniqid()) . ".php";

file_put_contents($cleanFileName, $_POST['clean_code']);

$obfuscatedFileName = $obfuscator->obfuscate($cleanFileName);

$obfuscatedCode = file_get_contents($obfuscatedFileName);

unlink(__DIR__ . DIRECTORY_SEPARATOR . $cleanFileName);
unlink(__DIR__ . DIRECTORY_SEPARATOR . $obfuscatedFileName);

    <h2>PHP Online Code Obfuscator</h2>
    <textarea cols=\"50\" rows=\"30\">
    <a href=\"index.php\">Go Back</a>

For more information send a message to info at phpclasses dot org.