I have a Php application that registers a person and when the person poe the password, the password is stored in the database in hash form, with the following code
password_hash($password, PASSWORD_BCRYPT)
Then, I have an application in Java and wanted to check a password with the hash that is in the database, I put the following code
BCrypt.hashpw(passTxt.getText(),BCrypt.gensalt())
The problem is that the hashes do not match. I have already been told that it may be from SALT that it has to be the same, but how do I do it for the same SALT?