View Full Version: md5

MPAM Rebooted Forums > Software support (freewares, PHP...) > md5


Title: md5


257335 - January 9, 2007 04:25 AM (GMT)
ok in the login script that you sent me iv desided i need to learn how to encrypt the data i would like to use md5 encryption. i have no clue what need to be added to it for everything to be read in right.

patheticcockroach - January 10, 2007 01:40 PM (GMT)
MD5 is not encryption, it's just a hash. What you need to do is simply to save md5($password) instead of $password in your database. Then when the user wants to log in, you compare md5($_GET["password"]) with the password hash stored in the database.

Here is a tiny utility to convert a string to MD5

257335 - January 19, 2007 11:37 PM (GMT)
would the same apply to sha1

patheticcockroach - January 20, 2007 06:35 AM (GMT)
Yes, absolutely. The only difference is that md5 is available from PHP 3 whereas sha1 is available from PHP 4.3.




Hosted for free by InvisionFree