I need help regarding the password encryption and decryption.
Scenario: I need an encryption and decryption functions in such a way that , when the user enters the password its first encrypted and then compared with the one stored in the database and validates. Now when the user forgets his password...he passes a request to retrieve it. Now when i try to take the encrypted password and decrypt, its not the same as the original string.
All this is when I use a java DES encryption and decryption.
Any help in this regard is highly appreciated.