Click here to Skip to main content
15,894,343 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am developing login module in my website.
I have one thing to ask you all. I would like to encrypt password to save to database. then I want to decrypt it when user forgot their password in order to sent them his password.I do not talk about MD5 in php.
if someone has experience about this let share it for developing human resource in the world.thank
Posted
Updated 12-Oct-10 16:36pm
v2

1 solution

Its pretty insecure to make a reversibly-hashed password. But if you must you can either make your own hash using a simple character replacement or base64 encode and decode. Of course, you might as well store the password in its original form with no 'encryption' since these methods are easily hacked and anyone who even finds their way into your db will know how to reverse them.

My suggestion, hash them by acceptable means and if they forget it, make them forgo having it reset to something randomly then they can change it on their own time.
 
Share this answer
 
Comments
Chetrabbu 21-Oct-10 0:57am    
Thank Sir now i create my own Encrypt Function .

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900