Re: php-db Digest 14 Jan 2008 19:48:27 -0000 Issue 3947

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()??
>
>

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Peter Westergaard [ Mo, 14 Januar 2008 22:54 ] [ ID #1907719 ]
PHP » gmane.comp.php.database » Re: php-db Digest 14 Jan 2008 19:48:27 -0000 Issue 3947

Vorheriges Thema: mysql_real_escape_string
Nächstes Thema: Forms submitting to a session array