master_secret_key = getpass(
    'tell me the master secret key you are going to use')
salt = bcrypt.gensalt()
combo_password = raw_password + salt + master_secret_key
hashed_password = bcrypt.hashpw(combo_password, salt)
Надежное хранение паролей для использования в скрипте Python