Hi to all,
I need some help on how can I decrypt the password in my MySQL database so I can use it for checking the user if they put there username and password?
You can't decrypt an MD5 hash. That is, there is no way to reverse the algorithm. What you need to do is encrypt the password the user submits at the time of logging in to the encrypted password stored in the database. The concept of a hash is that the same string run through a given hashing algorithm will result in the same encrypted string each time. This allows you to store passwords and possibly other sensitive data in a database or file in an encrypted form. If the file or database is compromised (if a cracker gets in), the data is useless to the individual who gained unwanted access. Unfortunately, there are databases available that contain the results of MD5 hashes on common password strings. I recommend using a SHA1 hash, and you might consider adding some add-on strings before encryption to make it more difficult for crackers. If you do use add-on strings, you must add the strings to both the password stored and the one submitted by the
Sign up for STechies