code: def hash_password(plaintextpw: str,
                    log_rounds: int = BCRYPT_DEFAULT_LOG_ROUNDS) -> str:
      
      salt = bcrypt.gensalt(log_rounds)  # optional parameter governs complexity
      hashedpw = bcrypt.hashpw(plaintextpw, salt)
      return hashedpw
docs: Makes a hashed password (using a new salt) using ``bcrypt``.
  
      The hashed password includes the salt at its start, so no need to store a
      separate salt.