FireEye Interview Question

When sending a packet, would you first encrypt or compress it?

Interview Answers

Anonymous

Dec 17, 2015

Compress then encrypt. Compression looks for patterns in random bytes of datastreams and then attempts to reduce these patterns to aid in compression. Encryption attempts to increase randomness/entropy, so you can see the obvious issue in doing it the other way

7

Anonymous

Jan 31, 2019

compression goal is always to reduce the redundancy in meta data but if you first do an encryption then there are only few times you get the cipher text with lot of redundancy so compression has no or very minimal effect on encrypted files. Hence first do compression then encryption.

1

Anonymous

Jan 31, 2019

compression goal is always to reduce the redundancy in meta data but if you first do an encryption then there are only few times you get the cipher text with lot of redundancy so compression has no or very minimal effect on encrypted files. Hence first do compression then encryption.

Anonymous

May 13, 2015

Compress it since that with a smaller size it gets more difficult for an attacker to intercept it, if you encrypt it, it actually doesn't matter if the attacker is able to sniff it.

5