password encryption

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

password encryption

Post 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
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post 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.
Post Reply