garak.buffs.encoding

Buff that converts prompts with different encodings.

class Base64(config_root=<module 'garak._config' from '/home/docs/checkouts/readthedocs.org/user_builds/garak/checkouts/latest/docs/source/../../garak/_config.py'>)Source

Bases: Buff

Base64 buff

transform(attempt: Attempt) Iterable[Attempt]Source

attempt copying is handled elsewhere. isn’t that nice

class CharCode(config_root=<module 'garak._config' from '/home/docs/checkouts/readthedocs.org/user_builds/garak/checkouts/latest/docs/source/../../garak/_config.py'>)Source

Bases: Buff

CharCode buff

transform(attempt: Attempt) Iterable[Attempt]Source

attempt copying is handled elsewhere. isn’t that nice