View previous topic :: View next topic |
Author |
Message |
KAMIKAZE_ Guru
Joined: 09 Oct 2003 Posts: 309 Location: Riga, Latvia
|
Posted: Sat Nov 13, 2010 9:38 am Post subject: md5 vs md5(Unix) |
|
|
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 |
|
|
manaka Apprentice
Joined: 23 Jul 2007 Posts: 178 Location: Spain
|
Posted: Sat Nov 13, 2010 7:06 pm Post subject: |
|
|
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 |
|
|
BitJam Advocate
Joined: 12 Aug 2003 Posts: 2508 Location: Silver City, NM
|
|
Back to top |
|
|
|