code: def hash_password(self, password):
          
          if self.use_double_hash():
              password = self.get_hmac(password).decode('ascii')
  
          return self.security.pwd_context.hash(
              password,
              **current_app.config.SECURITY_PASSWORD_HASH_OPTIONS.get(
                  current_app.config.SECURITY_PASSWORD_HASH, {}))
docs: Hash the specified plaintext password.
  
          It uses the configured hashing options.
  
          :param password: The plaintext password to hash