You can't decrypt the password from MySQL, instead, you should encrypt the input from PHP and then do the string comparison.
Good Luck, Dennis ----- Original Message ----- From: "Elaine Kwek" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 31, 2002 9:27 PM Subject: password function > i hope someone can help me in my problem. I have use the password function > in mysql to encrypt a string. Then when i try to get the encrypted password > using php and compare with the password that user enter. although the user > provide the correct password, but then the comparetion still fail. So, wat > should i do to decrypt the password from mysql? > > Elaine Kwek > "To handle yourself, use your head" > "To handle others, use your heart" > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.410 / Virus Database: 231 - Release Date: 10/31/2002 > > > --------------------------------------------------------------------- > Before posting, please check: > http://www.mysql.com/manual.php (the manual) > http://lists.mysql.com/ (the list archive) > > To request this thread, e-mail <[EMAIL PROTECTED]> > To unsubscribe, e-mail <[EMAIL PROTECTED]> > Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php > > --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php