Are you trying to encrypt the password and then test a user input string to see if it matches the encrypted password?
If so, you can md5() the user string and then compare the encrypted user string with the encrypted password.
If the md5() strings are the same string, then the password and the user string are the same.
Hope this helps.
-Rich