logoalt Hacker News

bwiggsyesterday at 1:36 PM3 repliesview on HN

You would still expect some amount of file structure, ex byte headers or something at the beginning/end of file. no?


Replies

Crestwaveyesterday at 2:43 PM

That would be expected for encodings or container file formats. Straight-up encryption like AES produces results that are visually indistinguishable from random data.

throwawaysoxjjeyesterday at 2:49 PM

I’d expect the greater length of the encrypted data (which should look random) vs the structured header/footer to rapidly push the Shannon entropy to the maximum

wang_liyesterday at 2:56 PM

No. Why would you? Encrypted data should look no different than random. The app figures out if it is the app's data after it attempts to decode it.