encripted values in mysql database

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
phpnew
Forum Newbie
Posts: 18
Joined: Tue Oct 12, 2004 7:40 am

encripted values in mysql database

Post 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
User avatar
mudkicker
Forum Contributor
Posts: 479
Joined: Wed Jul 09, 2003 6:11 pm
Location: Istanbul, TR
Contact:

Post by mudkicker »

can you post your code where you encrypt it please?

if it uses md5() or sha1() it is impossible to decrypt it..
phpnew
Forum Newbie
Posts: 18
Joined: Tue Oct 12, 2004 7:40 am

Post 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 .
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post 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.
Post Reply