mIRC Home    About    Download    Register    News    Help

Print Thread
#36787 16/07/03 11:27 PM
Joined: Feb 2003
Posts: 282
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Feb 2003
Posts: 282
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
?

#36788 16/07/03 11:28 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
You don't, md5 is one way.

#36789 16/07/03 11:29 PM
Joined: Feb 2003
Posts: 282
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Feb 2003
Posts: 282
Nooooooooooooooooooooooooooooooooooooooooooo

#36790 16/07/03 11:54 PM
Joined: Dec 2002
Posts: 30
A
Ameglian cow
Offline
Ameglian cow
A
Joined: Dec 2002
Posts: 30
You can only really use it to compare!

eg.
if ($md5(huh) == b71207f10d522d354a001768e21a78fe)

#36791 17/07/03 05:57 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
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...


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#36792 17/07/03 07:25 AM
Joined: Feb 2003
Posts: 282
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Feb 2003
Posts: 282
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.

#36793 17/07/03 09:35 AM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
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
  }
}


new username: tidy_trax
#36794 17/07/03 11:45 AM
Joined: May 2003
Posts: 215
Fjord artisan
Offline
Fjord artisan
Joined: May 2003
Posts: 215
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.


- Jason
#36795 17/07/03 11:47 AM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
$readini can open .dat


new username: tidy_trax
#36796 17/07/03 11:53 AM
Joined: May 2003
Posts: 215
Fjord artisan
Offline
Fjord artisan
Joined: May 2003
Posts: 215
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.


- Jason
#36797 17/07/03 11:53 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
saving the unencrypted and encrypted passwords in any way is totally ignoring the purpose of $md5 to begin with...


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#36798 17/07/03 02:45 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
I agree, if you are gonna do that, why bother using md5 at all? All you are doing is making things slower.

#36799 17/07/03 02:58 PM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
well, speed wasn't actually my point smile


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#36800 17/07/03 03:01 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
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.

#36801 18/07/03 02:08 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
nope i use md5 for url purposes.


new username: tidy_trax

Link Copied to Clipboard