Tom Beech
Tom Beech

Reputation: 2399

Determine type of compression used in string

Bit of an odd one. I'm trying to interpret the data an appliance connected to my WiFi network is sending in response to my request for its status. I requested some information as a HTTP request, and the XML response returned data=Hf+vEwAATAgyAAA4BgsMAAACAAAAAAAATAAAUHc=

So the data I want to decode is

Hf+vEwAATAgyAAA4BgsMAAACAAAAAAAATAAAUHc=

My question is, is this encrypted, compressed? It looks like compression to me, but I am unable to figure out what type it is.

Upvotes: 1

Views: 337

Answers (1)

Mark Adler
Mark Adler

Reputation: 112502

No, it's not compressed. It is Base64 encoded. Decoded you get, in hex:

1d ff af 13 00 00 4c 08 32 00 00 38 06 0b 0c 00
00 02 00 00 00 00 00 00 4c 00 00 50 77 

The decoded form is not compressed either, given the long strings of zeros. Nor is it encrypted, for the same reason. Well-compressed data will, at least at first blush, appear to be random data. Well-encrypted data is indistinguishable from random data.

Upvotes: 2

Related Questions