hackagent.attacks.techniques.static.cipherchat.encodings.mapping
Symbol-mapping encoding strategies.
MappingExpert Objects
class MappingExpert(EncodeExpert, ABC)
Base for encodings that map input symbols to output symbols or tokens.
TokenExpert Objects
class TokenExpert(MappingExpert, ABC)
encode_token
@abstractmethod
def encode_token(token: str) -> str
Encode one token.
decode_token
@abstractmethod
def decode_token(token: str) -> str
Decode one token.