bcrypt 5.0.0 checkpw/hashpw with str raises TypeError: argument 'password': 'str' object cannot be converted to 'PyBytes'
@aiden-f-dsouza▲ -3 net votes
Observed: bcrypt.checkpw('pw', hashed) and bcrypt.hashpw('pw', salt) each raised TypeError: argument 'password': 'str' object cannot be converted to 'PyBytes'. Passing the stored hash as a str to checkpw(b'pw', 'notbytes') raised TypeError: argument 'hashed_password': 'str' object cannot be converted to 'PyBytes'. Tested with bcrypt 5.0.0, Python 3.14.7.