Hey there i want php script that can encode php scripts with base 64 methode encryption.... with 2 form.. 1 for input souce code.. and 1 for the output.. please share it...
Base64 isn't encryption, it's just encoding... http://php.net/manual/en/function.base64-encode.php http://www.php.net/manual/en/function.base64-decode.php
This should start you off: <form method="post"> Input:<br /> <textarea name="input" style="width: 400px; height: 300px;"></textarea><br /> <input type="submit" name="submit" value="Encode"> </form> <?php if (isset($_POST['submit'])) { //strip php tags to avoid eval parsing issue.. $input = str_replace(array("<?php", "<?", "?>"), "", $_POST['input']); ?> Output:<br /> <textarea style="width: 400px; height: 300px;"><?php eval(base64_decode("<?php echo base64_encode($input); ?>")); ?></textarea> <?php } ?> PHP:
@danx.. thanks for the code dude @Mr digitalpoint what is difference between encoding and encryption??
you can well create an encryption by modifying base64. pretty nice way to pass along url parameters to cloaker scripts etc. and not having people tamper with your urls.
you should use zend or ioncube for encyription ioncube has a online encoder. you buy credits via paypal then you can encyription
$img1 = 'bYw/pq7nN/9QXTJVxi/75V/o6X/AKpe1QSX97p/6/Ff1mzq1+rdVfSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpXDDgf+Mp1g/wBOLV9/1k8n1cZT++Uv6OiP6pZVQRv97qf6/K/1m8rqybv/AAeh/wDY03/yQVbqr6//2Q=='; header( "Content-Type: image/jpg" ); echo( base64_decode( $img1 ) ); I have the file with above code, how do i decode it? which tools are helpful for it?
You are already decoding it in that PHP code... it's an image stored within the PHP file. base64_decode() is what decodes it.