Page 1 of 1

encripted values in mysql database

Posted: Fri Oct 15, 2004 11:28 am
by phpnew
Hello All,

I have this problem when I am inserting the password field in to the database table. the password is stored in a encripted format and is not allowing the user to get in with the password.

Please help.
Thank you

Posted: Fri Oct 15, 2004 11:40 am
by mudkicker
can you post your code where you encrypt it please?

if it uses md5() or sha1() it is impossible to decrypt it..

Posted: Fri Oct 15, 2004 12:13 pm
by phpnew
hello mudkicker
Thanks for the response as such no encryption being done. Is it by any way related to charset iso-8859-1

Thank you and waiting for your response .

Posted: Fri Oct 15, 2004 1:13 pm
by kettle_drum
You just need to do the same process to the password that the user enters the second time and then compair the result of that with the one stored in the database - you shouldnt have to decrypt any password. If they forget the password, then create a new random one for them.