note 9028 added to base64_decode
| From: | uioreanu at hotmail dot com | Date: | Thu, 12 Oct 2000 07:47:30 +0000 |
| Subject: | note 9028 added to base64_decode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-6403@lists.php.net to get a copy of this message | ||
Hello. I am Calin from Romania.
Here is a way to try to hide the
user/pass or smth from immediate:
<?
$username = "loosername";
$userpass = "nopassword";
echo "<br> <font face=arial size=2>encoded username ".
base64_encode($username);
echo "<br> encoded userpass ". base64_encode($userpass);
// after cut & paste from browser
$username = base64_decode("bG9vc2VybmFtZQ==");
$userpass = base64_decode("bm9wYXNzd29yZA==");
echo "<br> .. after decrypt";
echo "<br> username <b>".$username;
echo "</b><br> userpass <b>". $userpass;
/*
$db = new MySQL ;
$db->init();
...
*/
?>
http://www.php.net/manual/function.base64-decode.php