I have the following password stored in a database:
$2a$10$0T6qQvTwZoa8hG9Gw.iuiuJ4cXPdfnO21h.meL9QIqwIhjNx2WNHa
It is a bcrypt password stored by the following java command:
String passwordHash = BCrypt.hashpw(user.getPassword(), BCrypt.gensalt());
I know this password is "asdfasdf" because I entered it in. How would I get a "True" response from python using its Bcrypt library. Here is what I'm currently doing:
import bcrypt
password = "asdfasdf"
previous_hash = "$2a$10$0T6qQvTwZoa8hG9Gw.iuiuJ4cXPdfnO21h.meL9QIqwIhjNx2WNHa"
bcrypt.checkpw(password, previous_hash)
False