-1

I have a list of 2,000 MD5 hashes that represent email addresses. I need someone to help me to reverse the MD5 strings back to the original email addresses.

Using hashlib library is the best solution for this question I think.

Rodolfo
  • 7
  • 3

1 Answers1

2

You can't reverse a hash. You could crack it, as MD5 is prone to collisions, but the event of you getting the exact email is close to zero - you'll likely get an entirely different value whose MD5 hash matches yours but is not a valid email address.

If you're running a customer facing application and have no other ways of acquiring the addresses, you could check for a MD5 match against your database and if the user logs in then save the email.

5px
  • 131
  • 9
  • 1
    It's 128 bits. If we assume the email addresses use lower case ASCII letters, digits, '@' and '.', that's 5.15 bits per character. That allows 24.4 characters. And emails addresses are often shorter than that, so I think if you find a hash's shortest possible input string made from those characters, there's a decent chance that it's the correct email address. – Kelly Bundy Aug 26 '23 at 16:25