Re: login script
| From: | Andrew Kreps | Date: | Tue, 15 Aug 2006 16:59:13 +0000 |
| Subject: | Re: login script | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-240714@lists.php.net to get a copy of this message | ||
I would hope that MD5 hashing is MD5 hashing no matter where it
originates. However, I think it's better to use the database server's
implementation. I believe it is less likely to be changed in future
versions, and it removes some processing time from the front end.
Additionally, if you ever move away from PHP, you have one less line
of platform-specific code to change.
On 8/15/06, Dave Goodchild <buddhamagnet@gmail.com> wrote:
$pass = md5(password); select * from table 1 where password = '$pass'; I think the php and mysql md5 functions differ but I may be wrong!