Location: PHPKode > scripts > Solace script maze > solace-script-maze/table_shuffle.php
// #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_VARS} ob_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);
?>

Return current item: Solace script maze