Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
md5 vs md5(Unix)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
KAMIKAZE_
Guru
Guru


Joined: 09 Oct 2003
Posts: 309
Location: Riga, Latvia

PostPosted: Sat Nov 13, 2010 9:38 am    Post subject: md5 vs md5(Unix) Reply with quote

Hello. Does anybody know why md5 hash length is longer than md5(unix)? Is there any specification on md5(unix)? RFC1321 (regular md5) does not know anything about salt...
_________________
-=[powered by Gentoo]=-
Back to top
View user's profile Send private message
manaka
Apprentice
Apprentice


Joined: 23 Jul 2007
Posts: 178
Location: Spain

PostPosted: Sat Nov 13, 2010 7:06 pm    Post subject: Reply with quote

MD5 is a cryptographic hash algorithm. UNIX md5 password hashing is based upon MD5, but it's not MD5. It uses some techniques to be stronger. One of them is the use of a salt to make rainbow table attacks unfeasible.

As for the length, UNIX md5 strings are encoded in the [a-zA-Z0-9./] character set. The output of md5sum is encoded in the [0-9af] character set. That's why the output of the latter contains more characters.

You can find the specs of the password encryption function strings on the man page for crypt (man 3 crypt).

As for the actual algorithm, I guess the best way to know it would be searching for a paper that describes it. Or browsing the source code of the relevant files of glibc.
_________________
Javier Miqueleiz

"Listen to your heart. It knows all things, because it came from the Soul of the World, and it will one day return there."
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2508
Location: Silver City, NM

PostPosted: Sat Nov 13, 2010 7:10 pm    Post subject: Reply with quote

LMGTFY

more details
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum