Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: how to decode md5_base64 encoded data to get original data

by chrestomanci (Priest)
on Jun 01, 2012 at 09:02 UTC ( #973708=note: print w/replies, xml ) Need Help??

in reply to how to decode md5_base64 encoded data to get original data

In the general case, you can't, as BrowserUK says, md5 is digest, not a cypher so you can't decrypt.

If the list of plaintexts is small and known, you could construct a lookup table that will allow you to convert from one to the other, but that is limited by the time it takes to pre-compute hashes, and the disc space to store them all. Likewise if you can guess plaintext, then you can check your guesses.

There are services online that have access to big lookup tables to decrypted hashed passwords, though they are only suitable for short common passwords, and even then don't work very well. For example I tested with the md5 hash for "password" and "secret". successfully decrypted "secret", while was not able to crack either hash.

I should also remind you that depending on the circumstances, cracking passwords in this way may be illegal, unethical, or against the rules of your employer. You should tread with caution, and seek advice before attempting to reverse any md5 hashed data or password that you did not originate yourself.

  • Comment on Re: how to decode md5_base64 encoded data to get original data

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://973708]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2018-06-24 15:26 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.