Page 1 of 1

password encryption

Posted: Fri Feb 04, 2005 3:56 am
by pleigh
hi,

just like to know how to fic a problem with password encryption, i was able to encrypt passwords during registering an info to the database, but i can't log in because of the password does not match

i used password() and md5() functions but i still no luck

hope you can help me guys

thanks

pleigh

Posted: Fri Feb 04, 2005 5:03 am
by anjanesh
md5 - not encryption - hashed - check md5($row['pass']) with login password supplied.
mscrypt functions - encryption - either encrypt given login pass and check with that in db or descrypt the pass in db and check that will the value.