0

I am a new leaner of php. first I wrote code with no encryption, and my log-in system worked nicely, now I have change in database, encrypted the password with md5 function.

now my log-in system is not working properly, always log-in error!!

I know there is need to change in my code of matching password with database password.

what change is needed?? please help me.. I also want to know, as a new beginner, what I must go through, so that I can be able to be a professional developer... :)

I am loving php...!!

flag

2 Answers

0

I guess you need to encrypt your existing passwords in the database as well.

Check How to encrypt passwords in the database article.

link|flag
0

Are you using the same MD5 source code to process both the DB password and the input password? I make sure I validate my cross platform code first. This is the reason I don't use SHA-256. I don't have code that produces the identical results regardless of coding language. The MD5 I use is fully compatible across ASP, VB6 and VB.NET (2003 & 2005)

link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.