I have three binary files: 31744 byte length (1), 5712980 byte length (2) and 10806008 byte length (3).
The alphabet is all 256 symbols from 00 to ff. I compute the shannon entropy, replacing probability with frequency.
(1) H = 4.291334237835409
(2) H = 7.999155088532762
(3) H = 7.993862849926811
Then I encrypted all three files with AES. Alphabet is still the same. I computed the shannon entropy.
(1)' H = 7.255697988479884
(2)' H = 7.999970021706294
(3)' H = 7.999829860973214
Ok, I see the difference and the entropy of encrypted data is higher, it is expected.
But why entropy of encrypted data close to 8 and doesn't grow up? Entropy of plaintext bytecode is growing up with the size of data, but entropy of encrypted bytecode doesn't grow up with the size of data. Please, give me answer and some links if they exsist.