How to Verify WordPress Password Hash in Python/Django?

18 hours ago 1
ARTICLE AD BOX

I have a WordPress database that I am accessing from a Django site. I'd like to be able to log users in with their WordPress passwords. Is there a good way to do this in Python? I have tried these suggestions, but none have worked so far:

How to Verify WordPress 6.8 hash using Flask

validate wordpress user login from database using python

PHP password_verify() vs Python bcrypt.hashpw()

bcrypt.verify(plain_secret, users[0]['password'][3:])

password cannot be longer than 72 bytes, truncate manually if necessary (e.g. my_password[:72])

bcrypt.verify(password, users[0]['password'])

not a valid bcrypt hash

phpass.verify(password, users[0]['password'])

not a valid phpass hash

phpass.verify(password, users[0]['password'][3:])

not a valid phpass hash

Read Entire Article