bjblackmore
12-10-2008, 01:55 PM
Hi,
I'm working on create user & logon pages, that will store/retrieve the users details in a mysql database. I was initially going to use aes_encrypt to store the passwords, as its 128bit, so secure, then use aes_decrypt to retrieve the passwords, in the event that a user forgets a password, and wants it mailed to them.
However, after reading through some posts, I'm thinking that maybe I should drop the idea of using aes, and just use MD5 to hash the password. Some of the threads I've read suggest that if a user forgets a password, rather than decrypting the password, they can just have a new random password emailed to them instead of their old one.
What are everyones thoughts on this? Is there any compelling reason to use one over the other, speed, ease of use etc?
Any comments or suggestions would be much appreciated.
Ben
I'm working on create user & logon pages, that will store/retrieve the users details in a mysql database. I was initially going to use aes_encrypt to store the passwords, as its 128bit, so secure, then use aes_decrypt to retrieve the passwords, in the event that a user forgets a password, and wants it mailed to them.
However, after reading through some posts, I'm thinking that maybe I should drop the idea of using aes, and just use MD5 to hash the password. Some of the threads I've read suggest that if a user forgets a password, rather than decrypting the password, they can just have a new random password emailed to them instead of their old one.
What are everyones thoughts on this? Is there any compelling reason to use one over the other, speed, ease of use etc?
Any comments or suggestions would be much appreciated.
Ben