Implement a simple multiplicative key exchange encryption scheme in /workspace/encrypt.py that allows two…
Implement a simple multiplicative key exchange encryption scheme in /workspace/encrypt.py that allows two…: a task in Repo2RLEnv TerminalWorld (EuniAI) (Harbor dataset). The module must expose four functions: encode1(s, key) which encodes a plaintext string s using a key string (converting both to…
The task
The module must expose four functions: `encode1(s, key)` which encodes a plaintext string `s` using a key string (converting both to big-endian integers and multiplying), `encode2(s, key)` which applies a second layer of encoding to an already-encoded integer value using another key, `decode1(s, key)` which removes…
Part of FineEnvs/repo2rlenv-terminalworld.