Encoding, hashing & marshalling toolkit