1)Include this code in you PHP file
//Function to encrypt String.
function encode5t($str)
{
for($i=0; $i<5;$i++)
{
$str=strrev(base64_encode($str)); //apply base64 first and then reverse the string
}
echo $str;
return $str;
}
//function to decrypt the string
function decode5t($str)
{
for($i=0; $i<5;$i++)
{
$str=base64_decode(strrev($str)); //apply base64 first and then reverse the string}
}
echo $str;
}
$str=encode5t("amir");
decode5t($str);
No comments:
Post a Comment