3

I have a string and I can create its md5 using hexdigest by doing this

import hashlib
ver = 'root123'
hashlib.md5(ver).hexdigest()
'ff9830c42660c1dd1942844f8069b74a'

Now I would like to reverse this process. I have a hexdigest string and I would like to convert it to its original string. Is their a python library or a function to do that

Thank you

Anurag Sharma
  • 4,839
  • 13
  • 59
  • 101

1 Answers1

9

md5 hash is a one way hash. You cannot get the original string back. See more at:

Community
  • 1
  • 1
alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195