| Welcome to WebmasterWorld Guest from 126.96.36.199 |
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
|Subscribe to WebmasterWorld|
|password login encrypt|
| 5:29 am on Dec 17, 2008 (gmt 0)|
how would you retrieve a password from the database to use it to login if you put it in as like:
$hash = md5($salt1.$password.$salt2);
then like insert it in, i need to like have it so if the $_POST['password'] == $hashedPassword, but im not sure how to like do that.
| 5:35 am on Dec 17, 2008 (gmt 0)|
You have to compare the hashes, not the password text itself.
if(md5($salt1.$_POST['password'].$salt2) == $pass_from_database)
| 5:58 am on Dec 17, 2008 (gmt 0)|
thanks man i got it :D
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved