Equivalent of PHP's crypt function in Java

后端 未结 7 2212
青春惊慌失措
青春惊慌失措 2020-12-16 14:24

I am migrating my PHP code to Google App Engine - Java.
So I need an equivalent of PHP\'s crypt function in Java,
since I have stored all the passwords of registered

7条回答
  •  温柔的废话
    2020-12-16 14:48

    I can recommend this: MD5Crypt implementation

    MD5Crypt.crypt("youPassword"); // output: $1$zSiw0koU$i3Srfmoxx4VPePJHWqAuK/
    

    This is one of the few implementations, which works for me.

提交回复
热议问题