RE: [PHP-DB] Md5() / password() in MySQL
| From: | Mark Roedel | Date: | Mon, 13 Nov 2000 20:08:24 +0000 |
| Subject: | RE: [PHP-DB] Md5() / password() in MySQL | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-4405@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: kenji chan [mailto:kenjikenji@bigpond.com]
> Sent: Monday, November 13, 2000 2:06 PM
> To: php-db@lists.php.net
> Subject: [PHP-DB] Md5() / password() in MySQL
>
>
> Md5() / password() in MySQL:
>
> Md5() can be encode something, but how to decode it?
> Password() is a buld in function in mysql , but how to
> decode something from password() ??
In both cases, the answer is "You can't."
Both md5() and MySQL's password() are one-way functions.
To determine whether a password entered later matches the one that's stored,
you'll need to encrypt the new password and see whether the encrypted
strings match.
---
Mark Roedel | "Blessed is he who has learned to laugh
Systems Programmer | at himself, for he shall never cease
LeTourneau University | to be entertained."
Longview, Texas, USA | -- John Powell