Encoder now encodes the key & payload with same string -> hex -> int -> bin format. Should probably look into a better (or faster) way after PoC.