So I have a wesbite running php which encrypts all passwords using a line such as
password_hash($_POST['password'], PASSWORD_BCRYPT, $options)
and verify passwords as follows
$passwordCheck = password_verify($password, $row['password']);
the options variable being:
$options = ['cost' => 00];
I have excluded the number with 00 but it is of course something else not sure if it is relevant for me to not give out that number.
Here is the issue, I am running a SmartFox server which runs in java. I am using the login assistant (perhaps I may need not to, please continue reading) and it tries to compare the password I send to it as a plain text password, of course the MySql passwords are using BCrypt. Now in the documentation it references I can set the sign up to use Md5 so I presume I must be able to support this type of password check.
using md5 http://docs2x.smartfoxserver.com/api-docs/asdoc/com/smartfoxserver/v2/util/PasswordUtil.html
login assistant documentation http://docs2x.smartfoxserver.com/DevelopmentBasics/login-assistant
I believe I can try the following but please don't hesitate to tell me to approach this from another angle or that one of these won't work (as I don't understand hashing/encryption/salt/rainbowtables ect):
Could I convert the password in the c# application I am sending the password from and have the server check that against the database
Could I use a preprocessor to convert the password and check it and set the password to the password from the database if the preprocessor tells me it matches
get java to execute a php script if BCrypt isn't available on java