php for encrypt your data

This php useful for encrypt your data. We can use this php for encrypt our email, or our customer email or other data.

We can use this php with $_GET function without no worry. Usually I use my variable with no encrypt like this :

$email = "$data[email]";
$link = go.php?email=$email;
echo "<a href=\"$link\">Other Page</a>";

with that php code, email will show at website url address. And this is can be manipulated by other for try something, with just change the link with some : http://mywebsite.com/go.php?email=other_email.

This is example for easy about email, but if we want to hide that email, we can use belod php code :

$email = base64_encode($data[email]);
$link = go.php?email=$email;
echo "<a href=\"$link\">Other Page</a>";

With this code, at web url address will not again display our email, but has been encrypted.

For use the result at file go.php, we must change the encrypt result to real email.

Code :

$email = base64_decode($_GET['email']);

with that code, we will get real value of variable email.

We can use this code for other purpose like  encrypt name, maybe address or bank account number or others that we want to hide that from visibility.