Java crypt implementation (3)?

Can someone point me towards the crypt (3) library for java? One that generates results similar to PHP. eg.

james => $1$uAjE75CY$XVIp.DpCuwQTG60h.r5er /

thanks

Update:

The password above is split into $. 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 of the MD5 algorithm.

-1
source share
3 answers

Try it,

https://github.com/jonabbey/Ganymede/blob/master/src/ganymede/arlut/csd/crypto/MD5Crypt.java

I was able to use it to compare the password generated by the PHP crypt.

Note that this class uses its own MD5 class.

+1
source

"java crypt" gives several candidates to google.

0
source

Apache commons codec contains two clasees for Crypt3

  • org.apache.commons.codec.digest.Crypt
  • org.apache.commons.codec.digest.Md5Crypt
0
source

Source: https://habr.com/ru/post/907224/


All Articles