You can never actually decrypt them, it is one way only.
When you are checking passwords, you are comparing hashes rather than passwords. You has the password first and the check it against the database value.
in mysql this would be
- Code: Select all
SELECT username FROM table WHERE password = PASSWORD('monie')
Or in
PHP
- PHP: Select all
if (md5('monie') == $password)
echo 'Password is okay!';