HF RL Explorer

Task: Implement String Encoding/Decoding with a Password in Python

Task: Implement String Encoding/Decoding with a Password in Python: a task in Terminal-Lego-15k (Harbor dataset). Create a Python module that provides simple symmetric encryption/decoding of strings using a password. The implementation should encode a plaintext string with a password and decode it…

The task

Create a Python module that provides simple symmetric encryption/decoding of strings using a password. The implementation should encode a plaintext string with a password and decode it back to the original string using the same password. The encoded output should be URL-safe (suitable for use as URL parameters).

Part of PrimeIntellect/Terminal-Lego-15k.