unix password encryption

Hi,does anyone know where I might find a Java implementation of the UNIX encryption algorithm?thanks,Eric M.
[143 byte] By [eeoam] at [2007-9-26 5:41:53]
# 1
Check this link: http://208.223.9.21/jfd/crypt.html
swatdba at 2007-7-1 13:58:36 > top of Java-index,Security,Cryptography...
# 2

Finding the equivalent of the unix crypt() of the program seems to be the favorite of ppl around here .. i need it too. ALL the implementations for this crypt thing seem to be following the MD5 algo.

i need the MD5 algo which takes n 8 char string as the salt ... NOT a 2 char string as the salt ; i already have a zillion implementations of the latter.

sunilnegi at 2007-7-1 13:58:36 > top of Java-index,Security,Cryptography...
# 3

after some more research i have to the conclusion that the unix crypt() command indeed uses the DES algo .. but starting with the FreeBSD distro the MD5 algo has become the default algo for crypt. [which was not the case earlier on.]

but at the same time .. there is another complexity that i m not getting ..

if u look at the /etc/shadow file u will c that the encrypted password is 22 bytes in length ... but the docs for this algo [ as given in rfc 1321 by rivest ] say that the algo generates a 16 byte [128 bit] fingerprint ...

now if both the algos followed r the same then what r the xtra 6 bytes for ?

ne ideas .. ne1 ?

Sunil Negi

sunilnegi at 2007-7-1 13:58:36 > top of Java-index,Security,Cryptography...