How to encrypt the passwords and other important information using php md5

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 ?>
Ashesh

सयौ थुङ्गा फूलका हामी एउटै माला नेपाली, Welcome to my webpage. I'm from the Himalayan Country of Nepal. Well talking about me, I like mostly Web programming and Designing and furthermore I like Philosophical literature, Photography, Social networking. And I am Romantic and Sentimental person to some extent. Read more...