Proof of Concept - Encode/Decode Bytes Functions

Link to functions in IMACS repository (encode-decode-bytes branch)

encode.py (encoding function)

decode.py (decoding function)

  • recevies and paritions and an encoded message – passed as string – and a integer base (defaulted at 16)

  • relevant information (e.g message length, frame type, etc.) are extracted, decoded, and stored in a dictionary res to be returned at the end of the function