Sign in to follow this  
Followers 0
Unc3nZureD

MD5

4 posts in this topic

#1 ·  Posted (edited)

Hi all,

I'll be fast and straight.

_Crypt_HashData($Data, $CALG_MD5)

Is there any way to do the same, but reversed?

(MD5 to Text)

Edited by Unc3nZureD

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

No.

MD5 is a hash.

A hash is one-way.

You encrypt it once, never able to decrypt it.

Edit: 1337 h4xx0r. Lol.

Edited by Manadar

Share this post


Link to post
Share on other sites

Problem is that the string <> md5 hash relation is n:1.

#include <Crypt.au3>
#include <Inet.au3>

$sString = "Test"

$sString_Enc = StringTrimLeft(_Crypt_HashData($sString, $CALG_MD5), 2)
$sUrl = _INetGetSource("http://www.md5rainbow.com/" & $sString_Enc)
$sUrl = StringTrimLeft($sUrl, StringInStr($sUrl, "<h1>" & $sString_Enc & "</h1>") + StringLen("<h1>" & $sString_Enc & "</h1>"))
$sUrl = StringLeft($sUrl, StringInStr($sUrl, "<") - 1)

MsgBox(0, "", $sUrl)

Share this post


Link to post
Share on other sites

On the other hand 84,789,141 MD5 hashes are quite a lot :)...

#include <Crypt.au3>
#include <Inet.au3>

Global $sString_Dec
$sString = "The quick brown fox jumps over the lazy dog"
$aString = StringSplit($sString," ")

For $i = 1 to $aString[0]
    $sString_Enc = StringTrimLeft(_Crypt_HashData($aString[$i], $CALG_MD5), 2)
    $sUrl = _INetGetSource("http://www.md5rainbow.com/" & $sString_Enc)
    $sUrl = StringTrimLeft($sUrl, StringInStr($sUrl, "<h1>" & $sString_Enc & "</h1>") + StringLen("<h1>" & $sString_Enc & "</h1>"))
    $sUrl = StringLeft($sUrl, StringInStr($sUrl, "<") - 1)
    $sString_Dec &= $sUrl & " "
Next
$sString_Dec = StringTrimRight($sString_Dec,1)

MsgBox(0, "", $sString_Dec)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0