How to encrypt the passwords and other important information in your site say cookies,password, etc…well it is very simple md5 them so that nobody will be able to read it. here is a small example to md5 the words.
see the example at:
http://members.lycos.co.uk/nharsha/index.php
php and its md5 function
{
$code= md5($pass);
/*note that these htmlspecialchars and md5 are the built in functons of php language*/echo "the word you have entered is:\t\t\t".$pass."
";
echo "the md5ied form of the word is:\t\t\t".$code;
}
//end of if statement
?>