Could someone point me in the direction of a crypt(3) library for java? One that generates results similar to PHP. e.g.
james => $1$uAjE75CY$XVIp.DpCuwQTG60h.r5er/
Thanks
Update:
The password above is separated by $. The 1 represents MD5 (variation). The next token represents the salt used for the hash and the last token represents the MD5 hash. This hash is a variation from MD5 algorithm.
解决方案
Try this one,
I was able to use it to compare password generated by PHP crypt.
Please notice that this class uses its own MD5 class.