Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7658261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:10:44+00:00 2026-05-31T13:10:44+00:00

Possible Duplicate: Is it possible to decrypt md5 hashes? I have a database to

  • 0

Possible Duplicate:
Is it possible to decrypt md5 hashes?

I have a database to store usernames, passwords, emails, etc. If a user forgets his/her password, I will send it to their email account.

The problem is that I encrypt the password to md5 before I store it into my database. If the user’s password is ABC, I store it in my database as 867dbd57e9ca9f808. I cannot send the user “867dbd57e9ca9f808” if they forget their password. I would need to send “ABC”. However, that would require me to “un-md5” the string, which I don’t think is possible.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T13:10:45+00:00Added an answer on May 31, 2026 at 1:10 pm

    MD5 was designed to be hash, which is one way only, otherwise it would not be a hash. You should not send user his password, but give possibility to change it. You should generate a token, send link to change password to user’s mail with token in GET parameter. If user change the passwords remove the token. Also, you should remember that token must have expiry time.

    Something like:

    myurl.com/passwordrecovery?token=someGeneratedToken
    

    In database, you can look for token, and get user id. So for example, your table structure can look like:

    user_id | token | expiry_time
    

    If you would keep only tokens and expiry time in database, don’t do this. Associate token with user, otherwise user can request password change, and he will get following link(Don’t do this):

    myurl.com/passwordrecovery?token=token&user_id=number
    

    This way he can change someone else’s password by replacing user_id. And get access to his account. Expiry time should not be longer than 24 hours.

    Important

    Don’t use plain md5, it’s easy to crack. Use pbkdf2 for example.

    PHP implementations:
    PHP-Crypt-Lib,
    Pbkdf2 by inanimatt

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Is it possible to decrypt md5 hashes? i have md5 checksum in
Possible Duplicate: Is it possible to decrypt md5 hashes? i used md5.new() ; md5.update(aaa)
Possible Duplicate: Is it possible to decrypt md5 hashes? I hashed data with ComputeHash
Possible Duplicate: Is it possible to decrypt md5 hashes? I accidentally encrypted some data
Possible Duplicate: Is it possible to decrypt md5 hashes? In my website, I'm using
Possible Duplicate: Is it possible to decrypt md5 hashes? I do this in Ruby:
Possible Duplicates: Is it possible to decrypt md5 hashes? Is it possible to reverse
Possible Duplicate: PHP 2-way encryption: I need to store passwords that can be retrieved
Possible Duplicate: How does the Google Did you mean? Algorithm work? Suppose you have
Possible Duplicate: regex for URL including query string I have a text or message.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.