1

Possible Duplicate:
Is it possible to decrypt md5 hashes?

I have a table which is having md5 encrypted data in it. I have to copy that data in another table but in decrypted form. How can i do that in mysql query??

Community
  • 1
  • 1
developer
  • 2,042
  • 10
  • 40
  • 59

6 Answers6

4

You cannot decrypt an md5 hashed string, since it is a one way algorithm. But they can be converted using reverse lookup using mysql. You can refer various online decrypts to find a best solution.

Karthi
  • 41
  • 2
3

MD5 is not a reversible encryption algorithm. It's a one-way hash. The aim of a hash is to allow you to verify (with some degree of uncertainty) whether someone had the same original information as was used to create the hash. It does not allow you to get back from the hash to the original information.

Jon Skeet
  • 1,421,763
  • 867
  • 9,128
  • 9,194
2

MD5, as others have said here, is not reversible. Having said that, there are databases that contain sort of dictionaries to allow reverse lookup on MD5 hashes.

Check it out: http://tools.benramsey.com/md5/

More info here.

Community
  • 1
  • 1
cambraca
  • 27,014
  • 16
  • 68
  • 99
  • These tools are just like old cracking tools. In fact I have tried some examples on the url you sent and no one has been decrypted correctly (in fact the same MD5 can correspond to several different origins). The response should be "hashing algorithms are not reversible". – yoprogramo Oct 14 '11 at 06:58
  • Well, that's the first statement on my response. I'm just pointing out the fact that these dictionaries exist. They are not actually decryption tools, so they will certainly not "reverse" every hash you throw at it. – cambraca Oct 14 '11 at 07:00
1

NO, md5 data can not be decrypted.

xdazz
  • 158,678
  • 38
  • 247
  • 274
0

No,

MD5 is a HASH algorithm so, it is not possible to decrypt. To test if some value is correct, you compare the MD5(value) to stored MD5, but it is impossible to extract the original value from MD5.

yoprogramo
  • 1,306
  • 9
  • 14
0

If you decrypt the data from MysQL what would be the point of crypting it? You can only compare to a MD5 password with uncrypted data.

You can ofcourse crack the MD5, read http://alan.blog-city.com/cracking_mysqls_md5_function__within_seconds.htm

But you kinda missed the whole point of encrypting your password :/

Marco Johannesen
  • 13,084
  • 6
  • 31
  • 36