Any reason why you are using the very old python-bcrypt
package and not the newer bcrypt
package?
Have you tried bcrypt
instead?
And probably you could also have the same functionality just by using hashlib
from the python standard library?