/    Sign up×
Community /Pin to ProfileBookmark

Comparing MD5

Hello all. I have a question about MD5. I am trying to create a site that integrates with my PHPBB 3 forums. The cookies for the forums store the user ID number and a hashed password. I want to compare this hashed password to the hashed password in the user database so that users don’t have to login every time to get a session. What would I need to do to do this? Any help would be appreciated. Thanks.

to post a comment
PHP

6 Comments(s)

Copy linkTweet thisAlerts:
@bokehAug 15.2008 — [code=php]if($hashed_cookie_password === $hashed_database_password){[/code]
Copy linkTweet thisAlerts:
@jaablazeauthorAug 15.2008 — thats what I have setup now, but its still not working. any other suggestions?
Copy linkTweet thisAlerts:
@bokehAug 15.2008 — Post your code.
Copy linkTweet thisAlerts:
@sstalderAug 16.2008 — phpBB3 does not use plain md5 hashed strings to store passwords. I suggest searching their site or asking on their forums for some help.
Copy linkTweet thisAlerts:
@jaablazeauthorAug 16.2008 — I have been, but I'm getting no answers over there so I posted here. it looks like the same hash is used and stored in the cookie, but when I try to compare it comes back false.
Copy linkTweet thisAlerts:
@NogDogAug 16.2008 — There's a long discussion in the PhpBB forums about it you might want to wade through and see if you find a solution: http://www.phpbb.com/community/viewtopic.php?f=71&t=585387
×

Success!

Help @jaablaze spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...