docs: def compute_token(random_token, config):
      """Compute a hash of the given token with a preconfigured secret.
  
      :param random_token: random token
      :type random_token: str
      :return: hashed token
      :rtype: str
      """
      secure_token = config[TOKEN_SERVICE_SECURITY_CONFIG]
      sha1hash = hashlib.sha1()
      sha1hash.update(random_token + secure_token)
      return sha1hash.hexdigest().upper()