Page 1 of 1
two way encryption prob??
Posted: Thu Feb 09, 2006 12:22 am
by PHPycho
i wanna to have the two way encrption..ie if a password is encrypted then it can be decrypted to send it if the user forgets his password....
Tell me the best two way encryption function in PHP...
Thanks u in advance
Posted: Thu Feb 09, 2006 12:42 am
by feyd
that would depend on what you have available..
mcrypt is up there..
Posted: Thu Feb 09, 2006 12:54 am
by PHPycho
I wanna know the security issues of mcrpyt if any?
Posted: Thu Feb 09, 2006 12:57 am
by feyd
read up on each of the encryptions it offers.. there is a LOT of data on them out there.
Posted: Thu Feb 09, 2006 1:31 am
by m3mn0n
You could always use a "Secret question" system in combination with a "reset password" system where if they get the secret question correct, then a new pass is generated (reset) and e-mailed to them.
Personally I prefer an irreversable way like above, so if my site files and database data was compromised some how, the passwords are still secure for the most part.
But if you prefer having the option to decrypt, then take a look at the link feyd suggested.