pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedcrypt question (search mail list)
2+ messages / 2 participants
[nested] [flat]
* crypt question (search mail list)
@ 2002-04-11 01:51 Keith Gray <keith@heart.com.au>
2002-04-11 02:04 ` Re: crypt question (search mail list) jeff fitzmyers <fitz22@earthlink.net>
0 siblings, 1 reply; 2+ messages in thread
From: Keith Gray @ 2002-04-11 01:51 UTC (permalink / raw)
To: pgsql-sql
There was a post about a month ago about crypt and md5
fields being compared to text values...
(Can I search the archive... google lists... are these
the same as what we see here?)
Using PostgreSQL MD5 stored 'userpasswd' field with PHP
if(data[userpasswd] == md5(trypassword))
is never true, even when I substr the first 16 characters.
They appear the same if I print them!
Is this something to do with unicode?
...how do I compare a string value with a unicode string?
--
Keith Gray
Technical Development Manager
Heart Consulting Services P/L
mailto:keith@heart.com.au
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: crypt question (search mail list)
2002-04-11 01:51 crypt question (search mail list) Keith Gray <keith@heart.com.au>
@ 2002-04-11 02:04 ` jeff fitzmyers <fitz22@earthlink.net>
0 siblings, 0 replies; 2+ messages in thread
From: jeff fitzmyers @ 2002-04-11 02:04 UTC (permalink / raw)
To: pgsql-sql
> There was a post about a month ago about crypt and md5
> fields being compared to text values...
This works for me:
- $formpassword is the password entered on a webpage
- $row_login[password] is the md5 saved password
} elseif(md5($formpassword) <> $row_login[password]) {
//
}
Jeff
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2002-04-11 02:04 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-04-11 01:51 crypt question (search mail list) Keith Gray <keith@heart.com.au>
2002-04-11 02:04 ` jeff fitzmyers <fitz22@earthlink.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox