Encode and decode Hex (Base16) data.