Hi,
I checked on the net and found that decryption sha256 php is not possible.
then how can I implement Password Reminder option?
please advise...
Thanks, Jassim
Do it the way everyone else does it: if a user forgets his/her password, and you have some other way to identify/contact the user (password reset questions, primary e-mail address, etc.), generate a new password (or send a link via e-mail to do so).
Sha256 is a cryptographic hash function. Therefore, decrypting sha256 is impossible (ahem, infeasible actually) regardless of what language you use. You will never be able to find out what the original passwords were so you'll need to generate a NEW one and give it to a user if that user is able to demonstrate they are in fact the account holder. Like bg said, send them email or ask a secret question.
wikipedia wrote:The ideal cryptographic hash function has four main properties: it is easy to compute the hash value for any given message it is infeasible to generate a message that has a given hash it is infeasible to modify a message without changing the hash it is infeasible to find two different messages with the same hash.
The ideal cryptographic hash function has four main properties:
it is easy to compute the hash value for any given message it is infeasible to generate a message that has a given hash it is infeasible to modify a message without changing the hash it is infeasible to find two different messages with the same hash.