Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Mars to Earth at an average of 29 kbits/s. Parent comment
1) plain data initial stream.
2) compress it.
3) encrypt it or/and sign it.
4) add error-checking or even error-correction information.
The reason you do encryption (3) after compression (2) is because you don't want encryption to affect the compression rate of the initial stream.
If you were to do it in the reverse order (first encryption and then compression) then yes, the resulting message could be bigger.
There are no comments on this comment yet.
1) plain data initial stream.
2) compress it.
3) encrypt it or/and sign it.
4) add error-checking or even error-correction information.
The reason you do encryption (3) after compression (2) is because you don't want encryption to affect the compression rate of the initial stream.
If you were to do it in the reverse order (first encryption and then compression) then yes, the resulting message could be bigger.