facebook facebook twitter rss

Base64 Smart Encode/Decode

Author: UzunDz , Published: 24-10-2013
<form method="POST">
<pre>
<center>
<h2> Base64 Smart Encode/Decode </h2>
Number Of Encoding : <input type="text" name="number" />
<textarea name="string" cols=70 rows=17 >
<?php
set_time_limit
(0);

/*
* Coded by UzunDz
* Copyright To x00x Team.
* Greet'z To : Gastro-Dz , DamaneDz , n4ss1m , Ap0calYps , Sec4ever , massacreur , RAB3OUN , Alzher .
*/


if ($_POST ['_uzun'] == "encode" && $_POST ['_uzun'] != "" )

    
encoder($_POST['string'],$_POST['number']);

}else {
    
decoder($_POST['string']);
}



########## Function'Z ##########
function getcode($code){

preg_match('#base64_decode\(\"(.*?)\"\)#',$code,$result);
    return 
$result[1];
if(empty(
$result)){break;}

}

function 
encoder($code,$num){
    
    for(
$i=0;$i<$num;$i++){
        
$code base64_encode($code);
        
$code 'eval(base64_decode("'.$code.'"));';
    }
    echo 
htmlentities("<?php /* Coded By UzunDz */ ".$code."?>");
}

function 
decoder($code){
    
    
$strresults = array();
    
$stringfordec getcode($code);

    for(
$i=0;$i<1000;$i++){
        
$stringenc base64_decode($stringfordec);
        
$stringfordec getcode($stringenc);
    if(!empty(
$stringfordec)){
        
array_push($strresults,$stringfordec);
        }
    }
    echo 
htmlentities(base64_decode($strresults[count($strresults)-1]));
}
?>

</textarea>
<input type="submit" name="_uzun" value="encode" />&nbsp;<input type="submit" name="_uzun" value="decode" />
</form>
</center>

Like us on Facebook :