I have a Java application that needs to communicate with my server application (java application proxy forward by apache).
In my web site, I am using wordpress, so in order to use the same users in my site and in my application, I decided to use the wordpress users table in the db.
I need to be able to create a new开发者_运维百科 user from my application, but I have a problem hashing my password using Java.
How can I hash my password the same way as wordress does in Java?
(I just think it's better then proxy to java and then forward again to wordpress just to create a user)
thank you
There's a couple of posts on the net about the algorithm Wordpress uses (ref1, ref2). It has changed over different versions of WordPress so you will need to identify your version, identify the algorithm it's using, then see if you can find/build a Java version of that particular algorithm.
精彩评论