def execute(
        self,
        quantity: int = settings.TRENCH_AUTH["BACKUP_CODES_QUANTITY"],  # type: ignore[assignment]
        length: int = settings.TRENCH_AUTH["BACKUP_CODES_LENGTH"],  # type: ignore[assignment]
        allowed_chars: str = settings.TRENCH_AUTH["BACKUP_CODES_CHARACTERS"],  # type: ignore[assignment]
    ) -> Set[str]:
        """
        Generates random encrypted backup codes.

        :param quantity: How many codes should be generated
        :type quantity: int
        :param length: How long codes should be
        :type length: int
        :param allowed_chars: Characters to create backup codes from
        :type allowed_chars: str

        :returns: Encrypted backup codes
        :rtype: set[str]
        """
        return {
            self._random_string_generator(length, allowed_chars)
            for _ in range(quantity)
        }

        Generates random encrypted backup codes.

        :param quantity: How many codes should be generated
        :type quantity: int
        :param length: How long codes should be
        :type length: int
        :param allowed_chars: Characters to create backup codes from
        :type allowed_chars: str

        :returns: Encrypted backup codes
        :rtype: set[str]
        
api/custom_auth/mfa/trench/command/generate_backup_codes.py