RE: [PHP-DB] Md5() / password() in MySQL From: Mark Roedel (roedelm <email protected>)
Date: 11/13/00

> -----Original Message-----
> From: kenji chan [mailto:kenjikenji <email protected>]
> Sent: Monday, November 13, 2000 2:06 PM
> To: php-db <email protected>
> 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

-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>