MD5 hash (/mkpasswd)

These are old archives. They are kept for historic purposes only.
Post Reply
JanisB
Posts: 128
Joined: Fri Apr 22, 2005 9:05 am
Location: LV
Contact:

MD5 hash (/mkpasswd)

Post by JanisB »

-irc.server- *** Authentication phrase (method=md5, para=lamepass) is: $uefFGjJ8$2FIIdZ3PuK95++K39zNftw==
-irc.server- *** Authentication phrase (method=md5, para=lamepass) is: $NBdD7saT$aflh9NSYutGvmVv29Q3qOQ==
-irc.server- *** Authentication phrase (method=md5, para=lamepass) is: $K8pTAAME$FLYLNK2/J8KwyrxWb3ZdeA==

Really!?, in my opinion MD5 hash of "lamepass" is "85fce5a77788bb03cbd3fb3d396be023"
Syzop
UnrealIRCd head coder
Posts: 2179
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

We use salted MD5's, this is much more secure than standard MD5 since it prevents know-plaintext-ciphertext attack methods such as rainbowcrack which could crack any a-z{8} password in a few minutes (just as an example).
The salt is random, hence every time different output even if you encrypt the same string (ciphertext is affected by salt as well, hence also different).
JanisB
Posts: 128
Joined: Fri Apr 22, 2005 9:05 am
Location: LV
Contact:

Post by JanisB »

OK, so, how i can compare hashes, if /mkpasswd is using ANOTHER salt each time? :)
Syzop
UnrealIRCd head coder
Posts: 2179
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

that's the mystery...

No, seriously, read the code if you really want to know, but.. I don't have time to explain it all :P
Jason
Posts: 570
Joined: Mon Jun 14, 2004 5:09 pm

Post by Jason »

$K8pTAAME$FLYLNK2/J8KwyrxWb3ZdeA==

That is the result of md5ing boringpass and K8pTAAME (between the $$) together.

To compare, select the part between the $$, and md5 testpass and that salt.


I dont know exactly how to combine them for md5, because I havnt rtfs on this in quite some time.
Why the hell can't my signature be empty?
"Your message contains too few characters."
Post Reply