import bcrypt # Declaring our password password = b'GeekPassword' # Adding the salt to password salt = bcrypt.gensalt() # Hashing the password hashed = bcrypt.hashpw(password, salt) print(salt) print(type(hashed)) salt = hashed[:29] print(salt) print(password == bcrypt.hashpw(password, salt)) print(password == bcrypt.hashpw(password, salt)) print(password == bcrypt.hashpw(password, salt)) print(password == bcrypt.hashpw(password, salt)) print(password == bcrypt.hashpw(password, salt)) print(password == bcrypt.hashpw(password, salt)) print(password == bcrypt.hashpw(password, salt)) print(password == bcrypt.hashpw(password, salt)) print(password == bcrypt.hashpw(password, salt)) print(password == bcrypt.hashpw(password, salt))