<center>
<form method="POST"><input type="text" name="hash2"><br>
<input name="b1" value="Decodificar" type="submit"><br>
<input name="b2" value="Codificar" type="submit"><br>
<?php
// c0ded by v3n0m
$hash = $_POST['hash2'];
$boton = $_POST['b1'];
$boton2 = $_POST['b2'];
if($boton){
$pass = base64_encode($hash);
echo '<br><pre>';
echo "Palabra: " . htmlentities($hash) . "<br>";
echo "Enciptado: $pass <br>";
echo '</pre>';
}
if($boton2){
$pass = base64_decode($hash);
echo '<br><pre>';
echo "Codigo: $hash <br>";
echo "Desenciptado: " . htmlentities($pass) . "<br>";
echo '</pre>';
}
?>
</center>