I am getting error while hashing the pain text password using Bcrypt in Python. I am providing the error below.
Traceback (most recent call last):
File "hash.py", line 3, in <module>
hashed = hashpw(plaintext_password, gensalt(log_rounds=13))
TypeError: gensalt() got an unexpected keyword argument 'log_rounds'
My code is given below.
from bcrypt import hashpw, gensalt
plaintext_password = 'subhra123@'
hashed = hashpw(plaintext_password, gensalt(log_rounds=13))
print hashed
Here I need to hash my password.
gensalt()does not take log_rounds as a parameter? did you look at the docs to see what exactly to pass?