Login   Register  
PHP Classes
elePHPant
Icontem

File: table_shuffle.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Zubov Ilya  >  Solace script maze  >  table_shuffle.php  >  Download  
File: table_shuffle.php
Role: Application script
Content type: text/plain
Description: Protection procedure
Class: Solace script maze
PHP source code protection based only on PHP code
Author: By
Last change:
Date: 2004-07-06 00:46
Size: 692 bytes
 

Contents

Class file image Download
// #php version 4.3.0
// #Encoder
    $s = $this->php_implode($php_array);
    srand(time());
    $t1 = $this->table;
    do {
        $seed = rand(1, 32700);
        srand($seed);
        $t2 = str_shuffle($t1);
        $es = strtr($s, $t1, $t2);
    } while (!$this->safe_stream($es));
    $enc['enc_data'] = $es;
    $enc['shuffle_key'] = base64_encode($t2);


// #Decoder
<?php {MORPH_VARSob_start();
?>{ENC_DATA}<?php
function decode_run(&$s) {
    declare(
ticks=0);
    
$t1 $GLOBALS['V001'];
    
$t2 base64_decode('{SHUFFLE_KEY}');
    return eval(
strtr($s$t2$t1));
}
    
$s ob_get_contents();
    
ob_end_clean();
    return 
decode_run($s);
?>