Re: php-db Digest 14 Jan 2008 19:48:27 -0000 Issue 3947
| From: | Peter Westergaard | Date: | Mon, 14 Jan 2008 21:54:02 +0000 |
| Subject: | Re: php-db Digest 14 Jan 2008 19:48:27 -0000 Issue 3947 | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-44523@lists.php.net to get a copy of this message | ||
Miguel -
MD5() is a "hash" function, not an encryption function. A hash function cannot be reversed.
One of the reasons some sites use MD5() for passwords is so that the passwords are never even stored on the server, only the hash. So even the site's database admin can't figure out the passwords of users.
A hash is a little like a checksum. Two files can have the same checksum even if they're completely different files. But good luck to you if you want to CREATE a file with a specific checksum.
-Peter
Is there a function opposite to md5()??