From: Keith Gray <keith@heart.com.au>
To: SQL <pgsql-sql@postgresql.org>
Subject: crypt question (search mail list)
Date: Thu, 11 Apr 2002 11:51:36 +1000
Message-ID: <3CB4EC28.2EA348B7@heart.com.au> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: keith@heart.com.au
Subject: Re: crypt question (search mail list)
In-Reply-To: <3CB4EC28.2EA348B7@heart.com.au>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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