Thread: Creating a real user database / Log-in.

View Single Post

  #7 (permalink)  

Old 05-30-2005, 09:29 AM

PHP has built in md5.... I don't get it.

PHP Code:
<php?
$password=$_POST["Password"]; // Get Password passed from previous page
$encrypted md5($password); // Encrypt it...
echo $encrypted// Echo the encrypted password.  
?> 
That's how I've always done it. Just store the md5'd password in the database, and everytime you want to parse the login, just md5 it, and check it against the database entry.

Someone correct me if I'm wrong?
[ reply ]
Dissonance

Dissonance is offline You can't pronounce my name?

Dissonance's Avatar

Join Date: Jul 2004

Posts: 23