mIRC Homepage
Posted By: saragani How to undo $md5 ? - 16/07/03 11:27 PM
How do I get back the data after using $md5 ?

for example:
//echo -a $md5(saragani) gives:

e5b00bea2f85e66ffe246e4669d3cca3

How can I get back to saragani from e5b00bea2f85e66ffe246e4669d3cca3
?
Posted By: Collective Re: How to undo $md5 ? - 16/07/03 11:28 PM
You don't, md5 is one way.
Posted By: saragani Re: How to undo $md5 ? - 16/07/03 11:29 PM
Nooooooooooooooooooooooooooooooooooooooooooo
Posted By: arps Re: How to undo $md5 ? - 16/07/03 11:54 PM
You can only really use it to compare!

eg.
if ($md5(huh) == b71207f10d522d354a001768e21a78fe)
Posted By: LocutusofBorg Re: How to undo $md5 ? - 17/07/03 05:57 AM
If you really must undo a decode, then use $encode and $decode. less secure, and others can get your password tho. They can $decode it too...
Posted By: saragani Re: How to undo $md5 ? - 17/07/03 07:25 AM
Thanks.

The broblem that I had is that I was working with database of my old forum ,and all the passwords were stored in md5 format.

I though of registering all the old users with their passwords.
But since I can't unto md5, I thought of a new idea: the database of the the new forum (old one xmb, new one invision) hs the passwords stored in md5 format too, to I just copied all the passwords from the old database to the new one.

Altough it doesn't seems to be connected to mIRC, it does!! because I needed to know how to undo a md5.

Thanks.
Posted By: pheonix Re: How to undo $md5 ? - 17/07/03 09:35 AM
i use this,it might not be much help but,i use a text file to log the $md5's:

Code:
alias unmd5 {
if ($gettok($read(unmd5.txt,$1,s),1,32) != $null) {
  return $gettok($read(unmd5.txt,$1,s),1,32)
}
else {
return no matches found for $1
}
}
alias newmd5 {
  if ($read(unmd5.txt,$1,s) == $null) {
    /write unmd5.txt $1 - $md5($1)
    //echo -a new md5 added for $1
  }
  else {
    //echo -a $1 is already logged
  }
}
Posted By: lammkott Re: How to undo $md5 ? - 17/07/03 11:45 AM
That's rather defeats the purpose of using $md5 if you're just going to have a .txt file listing everything. You're better off saving it in a hash table: hadd md5 blah $md5(blah) then you can use: hsave -bo md5 md5.dat which would make viewing the content a little harder for someone without the knowledge of how to use $hget or other ways of viewing .dat files.
Posted By: pheonix Re: How to undo $md5 ? - 17/07/03 11:47 AM
$readini can open .dat
Posted By: lammkott Re: How to undo $md5 ? - 17/07/03 11:53 AM
Try this...

Code:
//hadd -sm md5 blah $md5(blah)
//hsave -bo md5 md5.dat
/run notepad.exe md5.dat


Then tell me how exactly $readini can open that without a [topic] and the fact that it's saved as a binary file.
Posted By: LocutusofBorg Re: How to undo $md5 ? - 17/07/03 11:53 AM
saving the unencrypted and encrypted passwords in any way is totally ignoring the purpose of $md5 to begin with...
Posted By: codemastr Re: How to undo $md5 ? - 17/07/03 02:45 PM
I agree, if you are gonna do that, why bother using md5 at all? All you are doing is making things slower.
Posted By: LocutusofBorg Re: How to undo $md5 ? - 17/07/03 02:58 PM
well, speed wasn't actually my point smile
Posted By: codemastr Re: How to undo $md5 ? - 17/07/03 03:01 PM
It wasn't mine either. My point was, he is using md5 in a manner that adds NO security. Therefore all using md5 is doing is creating extra processing that is useless.
Posted By: pheonix Re: How to undo $md5 ? - 18/07/03 02:08 PM
nope i use md5 for url purposes.
© mIRC Discussion Forums