yo don't decrypt passwords
its a one way trip
encrypt the users password,using what ever mode you choose to use (could use a front end function or an internal
MySQL encryption function
when you request a password repeat the encryption process and compare the encrypted values. providing you use the same method to encrypt then there is no problems
storing passwords in a db in clear is a bad move