|
Joined: Feb 2003
Posts: 282
Fjord artisan
|
OP
Fjord artisan
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 ?
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
You don't, md5 is one way.
|
|
|
|
Joined: Feb 2003
Posts: 282
Fjord artisan
|
OP
Fjord artisan
Joined: Feb 2003
Posts: 282 |
Nooooooooooooooooooooooooooooooooooooooooooo
|
|
|
|
Joined: Dec 2002
Posts: 30
Ameglian cow
|
Ameglian cow
Joined: Dec 2002
Posts: 30 |
You can only really use it to compare!
eg. if ($md5(huh) == b71207f10d522d354a001768e21a78fe)
|
|
|
|
Joined: Mar 2003
Posts: 1,271
Hoopy frood
|
Hoopy frood
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
|
|
|
|
Joined: Feb 2003
Posts: 282
Fjord artisan
|
OP
Fjord artisan
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.
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
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:
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
|
|
|
|
Joined: May 2003
Posts: 215
Fjord artisan
|
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
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
new username: tidy_trax
|
|
|
|
Joined: May 2003
Posts: 215
Fjord artisan
|
Fjord artisan
Joined: May 2003
Posts: 215 |
Try this...
//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
|
|
|
|
Joined: Mar 2003
Posts: 1,271
Hoopy frood
|
Hoopy frood
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
|
|
|
|
Joined: Dec 2002
Posts: 2,809
Hoopy frood
|
Hoopy frood
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.
|
|
|
|
Joined: Mar 2003
Posts: 1,271
Hoopy frood
|
Hoopy frood
Joined: Mar 2003
Posts: 1,271 |
well, speed wasn't actually my point
DALnet #Helpdesk I hear and I forget. I see and I remember. I do and I understand. -Confucius
|
|
|
|
Joined: Dec 2002
Posts: 2,809
Hoopy frood
|
Hoopy frood
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.
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
nope i use md5 for url purposes.
new username: tidy_trax
|
|
|
|
|