(
        self,
        quantity: int = trench_settings.BACKUP_CODES_QUANTITY,
        length: int = trench_settings.BACKUP_CODES_LENGTH,
        allowed_chars: str = trench_settings.BACKUP_CODES_CHARACTERS,
    )
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]
Generates random encrypted backup codes.
Generates random encrypted backup codes .
def execute(
        self,
        quantity: int = trench_settings.BACKUP_CODES_QUANTITY,
        length: int = trench_settings.BACKUP_CODES_LENGTH,
        allowed_chars: str = trench_settings.BACKUP_CODES_CHARACTERS,
    ) -> 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)
        }
def execute ( self , quantity : int = trench_settings . BACKUP_CODES_QUANTITY , length : int = trench_settings . BACKUP_CODES_LENGTH , allowed_chars : str = trench_settings . BACKUP_CODES_CHARACTERS , ) -> Set [ str ] : return { self . _random_string_generator ( length , allowed_chars ) for _ in range ( quantity ) }