garak.buffs.encoding

Buff that converts prompts with different encodings.

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

Bases: Buff

Base64 buff

transform(attempt: Attempt) Iterable[Attempt]

attempt copying is handled elsewhere. isn’t that nice

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

Bases: Buff

CharCode buff

transform(attempt: Attempt) Iterable[Attempt]

attempt copying is handled elsewhere. isn’t that nice