Generate a string for password creation.

def __generate_string(length):  # pragma: no cover
        """Generate a string for password creation."""
        return ''.join(
            SystemRandom().choice(string.ascii_letters + string.digits)
            for x in range(length)).encode()