For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > January 2008 > Re: php-db Digest 14 Jan 2008 19:48:27 -0000 Issue 3947









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

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

2008-01-14, 7:01 pm

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

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com