I use md5 function of PHP before storing the password in the database.
Scenario: I put an password retrieval program. After authentication that the username is realy exist, send an email containing his/her password and username.
Problem: I cannot return back the encrypted value.
e.g. password: 123456 md5 password: sdfgn234uih893hu9hu92rh8g58...... (32size in DB)
I want back the real value to "123456".
Constraits: I dont want to generate new password before do the email. I want to send back his/her currently used password.